From ab64480d2bf02b3651450b68df0f1868d1c3f169 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Thu, 26 May 2022 13:59:05 +0100 Subject: [PATCH] SITL: add spin armed rpm --- libraries/SITL/SITL.cpp | 2 ++ libraries/SITL/SITL.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 1a74cf0c48..b9cbdb54b3 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -285,6 +285,8 @@ const AP_Param::GroupInfo SIM::var_info3[] = { AP_GROUPINFO("ESC_TELEM", 40, SIM, esc_telem, 1), + AP_GROUPINFO("ESC_ARM_RPM", 41, SIM, esc_rpm_armed, 0.0f), + AP_SUBGROUPINFO(airspeed[0], "ARSPD_", 50, SIM, SIM::AirspeedParm), #if AIRSPEED_MAX_SENSORS > 1 AP_SUBGROUPINFO(airspeed[1], "ARSPD2_", 51, SIM, SIM::AirspeedParm), diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index 1fb9269342..feaef2b178 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -441,6 +441,8 @@ public: // ESC telemetry AP_Int8 esc_telem; + // RPM when motors are armed + AP_Float esc_rpm_armed; struct { // LED state, for serial LED emulation