Go to Post I never said there was anything wrong with the kit frame, simply that it was weak. - Viper37 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Spotlight this post!  
Unread 03-09-2009, 16:17
grim's Avatar
grim grim is offline
Inventor Guru
AKA: Todd
FRC #0549 (Devil Dawgs)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Leominster, MA
Posts: 29
grim is on a distinguished road
Re: Omni Vex code in easyc?

Quote:
Originally Posted by Kingofl337 View Post
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.
I'm not seeing the the Convert to 'C' code option on the right click menu. Is this an EasyC Pro function? We have a trial version and it doesn't appear.
__________________
"Does fuzzy logic create lint?"
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 19:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi