![]() |
Autonomous weirdness in user_routines_fast.c
Until today we've been running all of our autonomous code in user_routines.c and only running it unless we have a certain combination of switces on a joystick port set. Yesterday, we made a competition port cable with the autonomous selection switch. We moved all of our auton code to the autonomous loop in u_r_f.c and tried to run our code, but it didn't send out the PWM values. It seems to be doing something, as a pneumatic valve actuates whenever we put it in autonomous mode, but nothing else seems to be doing anything. Any ideas?
Thanks, Roland |
Re: Autonomous weirdness in user_routines_fast.c
Quote:
|
Re: Autonomous weirdness in user_routines_fast.c
Nope, we weren't using those PWMs. We found a lot of problems like = instead of ==, though, so we seem to be getting closer to finding a solution. Our programming mentor is here now, so we're in good hands.
|
Re: Autonomous weirdness in user_routines_fast.c
when you moved it to the other file, did you bring all the variable declarations with you?
|
Re: Autonomous weirdness in user_routines_fast.c
You'd get compiletime errors if you were missing declarations...sounds like you aren't calling Putdata(), but that would show up as a Code Error I believe. Have any error lights, or error from compiletime?
|
Re: Autonomous weirdness in user_routines_fast.c
OK, we fixed it. It seems we were trying to access some switches on the OI during autonomous mode, and that's what screwed us up. Thanks for all your help!
|
Re: Autonomous weirdness in user_routines_fast.c
Quote:
|
| All times are GMT -5. The time now is 02:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi