From 17f956b7667009edeb2fcada798c6d1fd86e02cf Mon Sep 17 00:00:00 2001 From: Bob Long Date: Wed, 2 Oct 2024 23:05:15 +1000 Subject: [PATCH] SITL: FlightAxis: add option to ignore RCIN This allows for autotests to run using the same UDP interface as the other vehicle frames. --- libraries/SITL/SIM_FlightAxis.cpp | 15 +++++++++------ libraries/SITL/SIM_FlightAxis.h | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libraries/SITL/SIM_FlightAxis.cpp b/libraries/SITL/SIM_FlightAxis.cpp index 68094ed52b36c..fca28dd1ccdf4 100644 --- a/libraries/SITL/SIM_FlightAxis.cpp +++ b/libraries/SITL/SIM_FlightAxis.cpp @@ -44,6 +44,7 @@ const AP_Param::GroupInfo FlightAxis::var_info[] = { // @Bitmask: 1: Swap first 4 and last 4 servos (for quadplane testing) // @Bitmask: 2: Demix heli servos and send roll/pitch/collective/yaw // @Bitmask: 3: Don't print frame rate stats + // @Bitmask: 4: Ignore RealFlight's RCIN and use UDP instead (for autotest) // @User: Advanced AP_GROUPINFO("OPTS", 1, FlightAxis, _options, uint8_t(Option::ResetPosition)), AP_GROUPEND @@ -545,14 +546,16 @@ void FlightAxis::update(const struct sitl_input &input) rpm[1] = state.m_propRPM; motor_mask = 3; - /* - the interlink interface supports 12 input channels - */ - rcin_chan_count = 12; - for (uint8_t i=0; i