|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: problems assigning unsigned chars in FRC Code
Thanks for your help. Now the printf is coming out correctly. However, the motors are not running properly. Our Drive_Forward command looks like this:
void Drive_Forward(int counter1) // Drive forward until counter reaches zero { while( counter > 0 ) { counter--; p1_y = 254; printf("pwm01: %d\n", (int) p1_y); p2_y = 254; printf("pwm02: %d\n", (int) p2_y); printf("counter1: %d\n", counter1); } } We are using the default code. The only change we've made is that the autonomous_code variable is set to 1. We called Drive_Forward(100) in the user_routines_fast loop. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FRC default code | hedgehogger | Programming | 2 | 21-01-2004 18:41 |
| Problem with FRC Default code | AsimC | Programming | 2 | 11-01-2004 19:22 |
| ADC problems with C library and new code | Larry Barello | Programming | 1 | 09-01-2004 22:31 |