remove clip_limit contraint on INT16_MAX

This commit is contained in:
Jacob Dahl
2024-04-11 13:16:45 -08:00
committed by Daniel Agar
parent b909cc1b5b
commit ff1da2ba29
2 changed files with 2 additions and 2 deletions
@@ -179,5 +179,5 @@ void PX4Accelerometer::updateFIFO(sensor_accel_fifo_s &sample)
void PX4Accelerometer::UpdateClipLimit()
{
// 99.9% of potential max
_clip_limit = math::constrain((_range / _scale) * 0.999f, 0.f, (float)INT16_MAX);
_clip_limit = fabsf(_range / _scale * 0.999f);
}
+1 -1
View File
@@ -178,5 +178,5 @@ void PX4Gyroscope::updateFIFO(sensor_gyro_fifo_s &sample)
void PX4Gyroscope::UpdateClipLimit()
{
// 99.9% of potential max
_clip_limit = math::constrain((_range / _scale) * 0.999f, 0.f, (float)INT16_MAX);
_clip_limit = fabsf(_range / _scale * 0.999f);
}