Go to Post Putting 2 and 2 together, and then mixing them back up for someone else to try and get 4 in a different way is just plain fun. - Elgin Clock [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2010, 13:29
fiferdc fiferdc is offline
Registered User
AKA: David Fifer
FRC #1747 (Harrison Boiler Robotics)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Brownsburg, IN
Posts: 10
fiferdc is an unknown quantity at this point
CircleTrackerDemo: Servos and Gyros

I've been playing around with the CircleTrackerDemo and have managed to get an image feed up on the dashboard. There are two things that I have run into that I am stuck at.

1. In the code, it constructs a Robot Drive with channels 1 and 2 on the digital sidecar referring to some motor. Are these supposed to be the servos that rotate the camera? I currently have them both as jaguars and have modified the code to get the robot to run on tank drive.

2. In the updated dashboard, there is a dial that has degrees listed about it. I'm fairly sure that this is relating to the gyro heading. In the Java code, clusters are created that display I/O and other readings to the dashboard. Looking through it, I found nothing (I'm not saying that it isn't in there and I didn't recognize it) that would display the gyro heading on the dashboard. How is this done?
  #2   Spotlight this post!  
Unread 22-01-2010, 14:22
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: CircleTrackerDemo: Servos and Gyros

There should soon be a white paper on the NI and FIRST web site that will document more of the background behind the sample code. To answer your direct questions, the sample code assumes that the motors are speed controllers for left and right sides of a skid steel robot. I can't tell you as much about the Java code, but the sample code should also be reading from a gyro and sending some of the camera results and gyro results back to the dashboard.

If you connect the gyro to analog channel one, module one, it should begin working.

Greg McKaskle
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
Java CircleTrackerDemo rjbarra Java 2 19-01-2010 22:56
Gyros and Accelerometers excel2474 Electrical 10 10-01-2009 13:22
Wiring Gyros and Encoders? SuspectZero Electrical 3 03-02-2008 15:30
Gyros and WPILib RyanW Programming 2 28-01-2008 14:05
Gyros and WPILib RyanW Programming 1 27-01-2008 22:24


All times are GMT -5. The time now is 02: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