View Single Post
  #9   Spotlight this post!  
Unread 21-02-2010, 15:05
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: How to update the Virtual compass

Quote:
Originally Posted by David Fort View Post
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
Ok, I found the example code you are talking about, now what I am wondering is how to get the DashboardDataSender to work in our code. I have tried simply declaring DashboardDataSender, but it returns an error saying that it does not name a type.