Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   "Manual" Autonomous? (http://www.chiefdelphi.com/forums/showthread.php?t=63450)

darkdwarven 07-02-2008 00:12

"Manual" Autonomous?
 
1 Attachment(s)
We were trying to find a way to program the Robot Cotroller so that when any of 2 inputs receive a signal, it will leave the autonomous code and enter a 'maual' autonomous code. The manual autonomous code would work based on 2 if statements that loop back to the other. The if statements would either say left or right and default forward until any other command or until our timer value ran out. Our code in the attached file, only makes the motors pulse for some other direction or go to one and continue straight without any further response. Any problems with our coding? Also does anyone know an easier way of accomplishing the same tasks?

A copy of our code is attached.
Thanks for the help! Team 2348!

Gamer930 07-02-2008 00:14

Re: "Manual" Autonomous?
 
Code:

if (ButtonPressed = TRUE)
should be if (ButtonPressed == TRUE)

got to love the equal and semicolons


All times are GMT -5. The time now is 23:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi