|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
|||
|
|||
|
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 |
|
|
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 |