Inertial(inertial& sensor, double fullTurnNegative, double fullTurnPositive)
Makes a new inertial sensor object with the given sensor and error data
The error data will vary between inertial sensors, and may sometimes vary over time.
Parameters
sensor- The inertial sensor to usefullTurnNegative- The reading on the sensor when it is turned 360 degrees in the negative direction (counter-clockwise)fullTurnPositive- The reading on the sensor when it is turned 360 degrees in the positive direction (clockwise)
Example
inertial sensor = inertial(PORT16);
//Usually fullTurnNegative and fullTurnPositive are equivalent, but sometimes they are not
Inertial angler = Inertial(sensor, 358.0, 358.0);