From 1d8e4ce5ac34ece3583ba7bebb43de914a136b30 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 12 Feb 2020 08:41:15 +0900 Subject: [PATCH] AP_ToshibaCAN: move usage_sec in telemetry struct According to WickedShell this saves 48bytes of RAM --- libraries/AP_ToshibaCAN/AP_ToshibaCAN.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ToshibaCAN/AP_ToshibaCAN.h b/libraries/AP_ToshibaCAN/AP_ToshibaCAN.h index 842eee74de..7191346f6d 100644 --- a/libraries/AP_ToshibaCAN/AP_ToshibaCAN.h +++ b/libraries/AP_ToshibaCAN/AP_ToshibaCAN.h @@ -83,8 +83,8 @@ private: uint16_t current_ca; // current in centi-amps uint16_t esc_temp; // esc temperature in degrees uint16_t motor_temp; // motor temperature in degrees - uint32_t usage_sec; // motor's total usage in seconds uint16_t count; // total number of packets sent + uint32_t usage_sec; // motor's total usage in seconds uint32_t last_update_ms; // system time telemetry was last update (used to calc total current) float current_tot_mah; // total current in mAh bool new_data; // true if new telemetry data has been filled in but not logged yet