|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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 |
|
#2
|
|||||
|
|||||
|
Re: Autonomous weirdness in user_routines_fast.c
Quote:
|
|
#3
|
|||||
|
|||||
|
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.
|
|
#4
|
||||
|
||||
|
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?
|
|
#5
|
||||
|
||||
|
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?
|
|
#6
|
|||||
|
|||||
|
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!
|
|
#7
|
||||
|
||||
|
Re: Autonomous weirdness in user_routines_fast.c
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Future of Autonomous Mode | FadyS. | Programming | 41 | 24-05-2004 19:45 |
| A better autonomous method.. | randomperson | Programming | 4 | 24-02-2004 18:02 |
| Autonomous Program Names | Venkatesh | Programming | 12 | 17-02-2004 10:25 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous Kill Switch | UCGL_Guy | Programming | 8 | 15-01-2003 17:39 |