Quote:
Originally Posted by Osprey1
Is anyone else getting this error? Did you fix it?
|
We are, and no we haven't fixed it, it's an issue with the WPI library.
Quote:
Originally Posted by Robototes2412
What language are you using?
|
This happens in C++.
I believe it might be due to the typo found in HiTechnicCompass.cpp. I haven't tried correcting this typo to see if it works without throwing an exception but this is probably the issue.
Quote:
|
Originally Posted by WPILibC++Rev2259
Code:
HiTechnicCompass::HiTechnicCompass(UINT32 slot)
: m_i2c (NULL)
{
DigitalModule *module = DigitalModule::GetInstance(slot);
if (module)
{
m_i2c = module->GetI2C(kAddress);
// Verify Sensor
const UINT8 kExpectedManufacturer[] = "HiTechnc";
const UINT8 kExpectedSensorType[] = "Compass ";
if ( ! m_i2c->VerifySensor(kManufacturerBaseRegister, kManufacturerSize, kExpectedManufacturer) )
{
wpi_fatal(CompassManufacturerError);
return;
}
if ( ! m_i2c->VerifySensor(kSensorTypeBaseRegister, kSensorTypeSize, kExpectedSensorType) )
{
wpi_fatal(CompassTypeError);
}
}
}
|
It shouldn't affect compass operations though.