oddjob
08-02-2009, 10:16
Is this how to use the HiTechnic compass?
HiTechnicCompass *m_compass;
float CompassAngle;
....
m_compass = new HiTechnicCompass(4); // slot 4
....
CompassAngle = m_compass->GetAngle();
The CompassAngle readings are always 65535.0. We checked the cable continuity from the I2C connector on the sidecar to the compass module and it seems ok. See anything wrong?
HiTechnicCompass *m_compass;
float CompassAngle;
....
m_compass = new HiTechnicCompass(4); // slot 4
....
CompassAngle = m_compass->GetAngle();
The CompassAngle readings are always 65535.0. We checked the cable continuity from the I2C connector on the sidecar to the compass module and it seems ok. See anything wrong?