AP_InertialSensor: use AP_Math rand_float()

This commit is contained in:
Andrew Tridgell 2017-04-12 21:16:21 +10:00
parent 2fcecaa7c5
commit 62b826953d
2 changed files with 0 additions and 7 deletions

View File

@ -148,12 +148,6 @@ void AP_InertialSensor_SITL::timer_update(void)
}
}
// generate a random float between -1 and 1
float AP_InertialSensor_SITL::rand_float(void)
{
return ((((unsigned)random()) % 2000000) - 1.0e6) / 1.0e6;
}
float AP_InertialSensor_SITL::gyro_drift(void)
{
if (sitl->drift_speed == 0.0f ||

View File

@ -21,7 +21,6 @@ public:
private:
bool init_sensor(void);
void timer_update();
float rand_float(void);
float gyro_drift(void);
void generate_accel(uint8_t instance);
void generate_gyro(uint8_t instance);