|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am using the following code to make our robot follow the line but it won't build and i was wondering if anyone could help me out cuz i am frantic...
void User_Autonomous_Code(void) { while (autonomous_mode) { if (statusflag.NEW_SPI_DATA) { Getdata(&rxdata); // bad things will happen if you move or delete this // Autonomous code goes here. digital_io_1 = 1; if(rc_dig_1 ==1 ) { pwm13 = 137 pwm14=100; { else { pwm13 = pwm14 = 140; } if(rc_dig_2 == 1) { pwm13 = 100 pwm = 137; } else { pwm13 = pwm14 = 140; } Generate_Pwms(pwm13,pwm14,pwm15,pwm16); Putdata(&txdata); // even more bad things will happen if you mess with this } } } Thanks!!!! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 3D Studio Max won't work | David the bomb | 3D Animation and Competition | 3 | 03-03-2004 17:12 |
| Problems of the mind... effecting work | Gadget470 | Chit-Chat | 20 | 18-11-2003 11:56 |
| Edit doesn't work on original title posts??? | Elgin Clock | CD Forum Support | 6 | 12-03-2003 17:30 |
| Who knows how the motors [I]really[/I] work? | Wetzel | Chit-Chat | 5 | 13-02-2002 21:50 |
| Does anyone on this board work at home depot? | mnkysp6353 | General Forum | 2 | 30-12-2001 13:27 |