mirror of https://github.com/ArduPilot/ardupilot
AP_Camera: Change from labs to abs for floats
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
997a527c1b
commit
87c09f98cc
|
@ -287,7 +287,7 @@ void AP_Camera::update()
|
|||
return;
|
||||
}
|
||||
|
||||
if (_max_roll > 0 && labs(ahrs.roll_sensor*1e-2f) > _max_roll) {
|
||||
if (_max_roll > 0 && fabsf(ahrs.roll_sensor*1e-2f) > _max_roll) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue