From 00c487e5180a6f9b72fd552c73243b9e30549758 Mon Sep 17 00:00:00 2001 From: James Jackson Date: Thu, 15 Sep 2016 21:26:55 -0700 Subject: [PATCH] updated mavlink to larger baro datatype that doesn't overlow --- include/mavlink/v1.0 | 2 +- src/mavrosflight/sensors/baro.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mavlink/v1.0 b/include/mavlink/v1.0 index b0c67c1..b94d73d 160000 --- a/include/mavlink/v1.0 +++ b/include/mavlink/v1.0 @@ -1 +1 @@ -Subproject commit b0c67c12dd46df0531cdf9b3c6636ae0814e3fd6 +Subproject commit b94d73d04c5b60f1f4a5f3c5dd62ffd33635fe6c diff --git a/src/mavrosflight/sensors/baro.cpp b/src/mavrosflight/sensors/baro.cpp index 86deed8..e1cfb8a 100644 --- a/src/mavrosflight/sensors/baro.cpp +++ b/src/mavrosflight/sensors/baro.cpp @@ -33,8 +33,8 @@ Baro::Baro() bool Baro::correct(mavlink_small_baro_t baro, double *alt) { - double pressure = baro.pressure; - double temperature = baro.temperature; + double pressure = (double)baro.pressure; + double temperature = (double)baro.temperature; if( calibration_counter_ > calibration_count_ + settling_count_) {