Go to Post Mmmmm, First Choice day. I can already taste the latency. - ttldomination [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
  #1   Spotlight this post!  
Unread 11-01-2008, 13:17
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Integration of Gyro with Easy-C Pro

I am using a Vex Robot to prototype Team 47 FRC Robot this season using Easy-C Pro to switch between both bots. Chief Delphi has a white paper "Working the Angles:" authored by Jim Zondag, Team#33 - Killer Bees that I am attempting to implement. This paper shows a simple technique for gyro integration. The gyro_angle(void) function is called from Process_Data_From_Master_Up() every 26.2 msec. A simple calculation is performed. Other C functions are operated/completed and I know the loop will eventually terminate in some holding loop function until the next interrupt starts the next loop again.
How does this correlate to Easy-C implementation? If I place the function in a while loop, won't the function integrate multiple times and get different results.
What Easy-C implementation should I use with the gyro to make sure it only get's implemented once during the 18 msec(?) loop?

__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
 


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 Easy C Pro G1279 Programming 2 17-01-2008 13:01
Easy C Pro RRA4LIFE2 Programming 6 16-01-2008 17:25
Problem with easy c pro and mechanum wheels pbrules15 Programming 9 03-02-2007 20:38
From MPLAB To EASY C PRO 354.FIRST Programming 4 30-01-2007 17:13


All times are GMT -5. The time now is 23:20.

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