mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
remove clip_limit contraint on INT16_MAX
This commit is contained in:
parent
b909cc1b5b
commit
ff1da2ba29
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user