need help with coding even though i am a pretty good coder
okonisfree
Posts: 38
I hope someone can help me with this. My Boe-Bot cannot get out of corners. Right now, I have the IR configuration set up. I tried the code that is meant for the whiskers in the manual, but it doesn't work. BTW, I am doing high performance IR navigation.
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
·ir_det = ir_det + 1
· if (ir_det >3) then
·· gosub u_turn
·· Or something like that.... Just my two cents...... [noparse];)[/noparse]
Post Edited (scary_bot) : 7/25/2006 6:48:20 AM GMT
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
Change pulseCount = 0 TO 20 to pulseCount = 0 TO 35.
There is also another pulseCount in code you change under "Turn_Left"
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
Post Edited By Moderator (Chris Savage (Parallax)) : 7/28/2006 5:25:53 AM GMT
····if·(ir_l = 0)AND (ir_r = 1) THEN
····· DO WHILE (ir_l = 0)
······· GOSUB left_turn
·········· LOOP
······· This will keep it moving left as long as,(ir_l = 0).