Go to Post For me, this is the most powerful message of FIRST, that people can come together and work together to achieve so much, and leave old rivalries, grudges, and hard feelings behind. When people talk about culture change, this is what I hope for. - Aren Siekmeier [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
  #12   Spotlight this post!  
Unread 03-09-2009, 22:39
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Omni Vex code in easyc?

For those of you interested, I've posted a scaled holonomic drive library on VEX Forums here. The features of this library:

-squarejoy() - A function which will perform squaring on a PWM value (still has a range of about 0-255, one or two points less).
-charabs() - Perform an absolute value function with 127 as center instead of 0.
-holodrive() - Function for holonomic driving that can be used portably.
-Scaled - you can always reach full value of the motor speeds, but scaling maintains maneuverability. When a motor goes out of range, it scales all of the motors down to the wheel that is most out of range.
-Documented code! - I've tried to comment everything as much as possible so you can tell what's going on. Not to mention the description on the VEX Forum page.


Anyone is free to use this code, and ask me questions about it. As for use with EasyC, I'm not quite sure about using actual code in !EasyCPro. All of this was done with WPILib under MPLAB. But maybe someone here could transform the header and .c file I loaded into EasyC project files? I'm not sure if you can just include source code files in an EasyC project, but if you can, that should work too.
 


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