Shop OBEX P1 Docs P2 Docs Learn Events
Coding problems !!!!!!! — Parallax Forums

Coding problems !!!!!!!

jmarss406jmarss406 Posts: 3
edited 2007-07-12 21:17 in Robotics
Does anyone have the code for the whiskers, the Ir sensor for falling off a table and the following a flashlight code? They work individually for me but i need them to work at the same time. Can anyone do this I am terrible at coding ? I can even send you the codes I have now

thanks
Marcellaj@wit.edu

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-06-20 17:56
    Just attach the code to a post and we will have it. You need to remove the redundant code from the three programs and string them together so your bot checks one then the next and so on.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • jmarss406jmarss406 Posts: 3
    edited 2007-06-21 18:31
    Those were the two codes i mainly needed if you could help me with that it would be awesome thanks
    so much
  • Skywalker49Skywalker49 Posts: 172
    edited 2007-06-21 21:13
    The code in avoidsteps in not OK.. these are from Robotics 2.2 manual pages 259 / 260

    Please check the pulseleft / pulseright numbers when left of right IR = 1.
    These should not be 0 !! Nor should be the pulsecount.

    Check the manual again.

    Ed
  • Skywalker49Skywalker49 Posts: 172
    edited 2007-07-12 21:17
    Just for the record and finish this thread.

    We worked together and compiled some code for·the Boebot with IR detection to prevent the
    BB falling from the stairs or table .. or fall in a hole !!
    At the same time the photoresitors are used to follow the flashlight.

    Here the code, mainly copied from the textbooks and a video the proof it works .. more or less...yeah.gif
    http://www.youtube.com/watch?v=C6UijDGAmqs

    Ed

    Post Edited (Skywalker49) : 7/13/2007 7:24:52 AM GMT
Sign In or Register to comment.