Re: Robotic arm out of control

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks Rob,
Yes it was to do with \n. If you have an external modem with flickery
lights, you can see the problem.

-----------------------------------------
include get.e
object modem
modem = open("COM1", "ub")
puts(1,"I'm going to send \'AT\' to the modem (standard test)...\n")
puts(1,"Press a key to begin or Ctrl-C to quit")
if wait_key() then end if

puts(modem,'a')
puts(1,"\n\nI've sent an a...")
puts(1," You should have seen no flickering lights...\n")
if wait_key() then end if

puts(modem,'t')
puts(1,"I've sent a t...")
puts(1," You should have seen no flickering lights...\n")
if wait_key() then end if

puts(modem,'\n')
puts(1,"I've sent \\n...\n")
puts(1,"The buffer should have flushed and the modem flickered!\n\n")
puts(1,"Press a key to quit...")
if wait_key() then end if
close(modem)
-----------------------------------------

It's a good job characters 10 and 13 (\n) don't do anything on the
robotic arm or I would be in trouble then!
My arm-controlling program still probably won't work, but you never
know! I'll be putting the stand-alone and with-arm versions on my
website once I've finished it and I'll let you all know how it went.
Many Thanks,
Stephen Spencer
stephen.spencer at usa.net

p.s. I've given up with the idea of the diskmag intro, so can you just
send any interesting articles to the above address, and I'll sort out
all the formatting and stuff when I get them. Expect the full diskmag
out in a couple of months (when all my coursework is out of the way!)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu