AP_Camera: revert AP_Math class change

This commit is contained in:
Andrew Tridgell 2015-05-05 12:35:15 +10:00
parent 48fb7f8159
commit d2167633f0

View File

@ -235,7 +235,7 @@ void AP_Camera::send_feedback(mavlink_channel_t chan, AP_GPS &gps, const AP_AHRS
*/
bool AP_Camera::update_location(const struct Location &loc)
{
if (AP_Math::is_zero(_trigg_dist)) {
if (is_zero(_trigg_dist)) {
return false;
}
if (_last_location.lat == 0 && _last_location.lng == 0) {