View Single Post
  #2   Spotlight this post!  
Unread 17-05-2006, 08:57
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: gyro/camera question

1.
For the gyro your best bet is to print the value it returns to the screen and then
turn your robot. Use the value it returned to specify a heading.

Gyro_Target = 90
Spin = GyroHeading - Gyro_Target

You could dump spin into the drive functions used in the tutorial that came with
easyC

2.
The servos should track when set to 1. You probably have to drag in the "start Camera" block after you set the servos. If its not working you can command the servos to move to a position if they don't move something is wrong with your setup.