Go to Post Clearly and clearly, the go-to place is Chief Delphi. It connects all the dots. - JaneYoung [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
  #8   Spotlight this post!  
Unread 15-02-2010, 23:28
David Fort David Fort is offline
Registered User
FRC #1001
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Cleveland, OH
Posts: 26
David Fort is on a distinguished road
Re: How to update the Virtual compass

I trust this won't get any points for elegance, but in our case, we find the virtual compass on the driver station (straight out of the box) is updated along with the Vision Data, which at present, we don't have, but this seems to get the compass heading updated by stubbing out the vision stuff:
// this comes from the example:
// dds->sendVisionData(0.0,
// gyro->GetAngle(),
// 0.0,
// targets[0].m_xPos / targets[0].m_xMax,
// targets);

// and we are able to swing the needle thusly:
vector<Target> targets;
dds->sendVisionData(0.0, m_Gyro->GetAngle(), 0.0, 0.0, targets);


This uses DashboardDataSender.cpp from the 2010 Image Demo.

Hope it helps,
David Fort
Mentor, Team 1001
Hacksaw
 


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
HM55B Digital Compass - How do I program the controller to read it? RyanN Programming 12 13-03-2008 00:14
Interfacing a digital compass with the RC Kelly Electrical 14 27-09-2007 19:01
We are looking for the 2005 Virtual Kit Of Parts sgsdragons Inventor 2 22-01-2005 16:44
Who was in on the Virtual March on Washington? Scottie2Hottie Chit-Chat 2 28-02-2003 10:09
WHERE IS THE VIRTUAL KIT OF PARTS ggoldman Inventor 6 08-01-2002 13:42


All times are GMT -5. The time now is 01:55.

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