From 1dca51fe7640cf1de8f9e0117d65cfde68304b1e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 24 Aug 2024 10:28:30 +1000 Subject: [PATCH] ArduSub: adjust for rangefinders getting longer ranges --- ArduSub/Sub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 909a28c517a87f..e531bccfba6e83 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -148,8 +148,8 @@ class Sub : public AP_Vehicle { bool enabled:1; bool alt_healthy:1; // true if we can trust the altitude from the rangefinder int16_t alt_cm; // tilt compensated altitude (in cm) from rangefinder - int16_t min_cm; // min rangefinder distance (in cm) - int16_t max_cm; // max rangefinder distance (in cm) + int32_t min_cm; // min rangefinder distance (in cm) + int32_t max_cm; // max rangefinder distance (in cm) uint32_t last_healthy_ms; float inertial_alt_cm; // inertial alt at time of last rangefinder sample float rangefinder_terrain_offset_cm; // terrain height above EKF origin