Go to Post FIRST is not about lowering the bar to those with the smallest expectations, but helping helping all teams exceed the standards set by the best. - Allison K [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-03-2003, 11:50
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
The PICstartPlus package is excellent. I got one several years ago, and cant say enough good things about MicroChip, their uPs, their tools.

It amazing what you can do with their uPs. From the little 8 pin ones, up to the 40 pin DIPs. If anything, they are a little more expensive than other microcontrollers, but if you are building small quanitiies of stuff, the ease of use is worth the few extra dollars.

BTW - I went to Dean Kamens house during the kickoff a few years back, and smiled when I saw the PIC box on a shelf in his library :c)

We had thought about doing an external circuit to turn the Gyro into an absolute heading signal, and realized all you have to do is accumulate the output value (normalize it by subtracting 127) in a 16bit variable - just add it on every loop, and if deltaT is = 1, add it again.

Since the loop in your SW is running at a (deterministic) fixed rate - by accumulating it in a 16bit variable, you are in effect multiplying the degrees/second signal by the cycle period (seconds) and you end up with a 16bit value that is directly proportional to the number of degrees the robot has turned since you powered it up.

We us it in our code to determine when we have turned 45° in auton mode - 45° comes out to be around 3000.
Closed Thread


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
Calling all PHP/ASP programmers! blueWarrior FIRST-related Organizations 15 27-01-2004 13:24
TCP/IP on a PIC Venkatesh Electrical 1 18-11-2003 21:00
Learning PIC C Adam Collet Programming 18 19-10-2003 19:36
pic: Another pic of Team 930 CD47-Bot Robot Showcase 7 25-02-2003 21:07


All times are GMT -5. The time now is 10:52.

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