AP_Camera: Change from labs to abs for floats

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-05-15 10:34:31 -03:00 committed by Francisco Ferreira
parent 997a527c1b
commit 87c09f98cc
1 changed files with 1 additions and 1 deletions

View File

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