|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#10
|
||||
|
||||
|
Re: Omni Vex code in easyc?
Here is the easiest way to do what you wish.
1.) Right click on User Functions -> Add New -> Name it omni and click ok 2.) Click on the project tab. 3.) Right Click on the function name -> Convert to 'C' Code -> Yes 4.) After you function will look like this.... #include "Main.h" void omni ( void ) { <---Paste the code in here } 5.) Paste the code provided between the braces starting at the variables and ending with the last brace. 6.) Rename SetMotor to SetPWM 7.) Goto the UserInclude.h File and under where it says "Add User Code Here" Add a line : void omni (void ); This should work, I tested it out. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2008 Omni Drive Code Help | Vasily Zaitsev | Technical Discussion | 5 | 27-01-2008 00:57 |
| pic: vex omni drive | 1902_Battery_SGT | FIRST Tech Challenge | 6 | 28-05-2006 17:55 |
| pic: simple omni vex bot | colin340 | FIRST Tech Challenge | 15 | 05-05-2006 17:16 |
| EasyC Default Code | Team 1649 | Programming | 13 | 29-01-2006 11:52 |
| Vex Easyc vs Mplab | Joohoo | Programming | 17 | 27-01-2006 08:22 |