![]() |
Re: Auto Mode!!! WHOA...what tha?
Quote:
|
Re: Auto Mode!!! WHOA...what tha?
as an aside, there's a difference between DECLARING a variable and DEFINING it.
As Alan stated, pwm01 and p1_y are all defined in ifi_aliases.h But defining a value is not the same as declaring it. Defining uses the assignment operator (=). Additionally, the default code (that includes the camera code, at any rate), has a couple of lines in the User_Autonomous_Routines() function before the autonomous mode loop that effectively does initialize all of the pwm's and relays to 0. It effectively reads: pwm01 = pwm02 = pwm03 = ... = 127; relay1_fwd = relay1_rev = ... = 0; Then inside of the autonomous loop (where the getdata and putdata lines are located), you would set your values for pwms inside of there. And as stated, do NOT attempt to redeclare them, as they've already been #define 'd in ifi_aliases.h |
| All times are GMT -5. The time now is 20:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi