remove clip_limit contraint on INT16_MAX

This commit is contained in:
Jacob Dahl authored and Daniel Agar committed 2024-04-16 11:43:55 -04:00
1 parent b909cc1b5b
commit ff1da2ba29
2 files changed
+2 -2

No files matched your search

@@ -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);
}