From 72ddcb593b1458f15965ac1cc741868b2ea872c4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Jan 2020 15:46:05 +1100 Subject: [PATCH] Rover: update for new SRV_Channels parameter conversion call --- APMrover2/Parameters.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/APMrover2/Parameters.cpp b/APMrover2/Parameters.cpp index c25167db94..43d6ab091b 100644 --- a/APMrover2/Parameters.cpp +++ b/APMrover2/Parameters.cpp @@ -755,15 +755,7 @@ void Rover::load_parameters(void) g2.crash_angle.set_default(30); } - const uint8_t old_rc_keys[14] = { Parameters::k_param_rc_1_old, Parameters::k_param_rc_2_old, - Parameters::k_param_rc_3_old, Parameters::k_param_rc_4_old, - Parameters::k_param_rc_5_old, Parameters::k_param_rc_6_old, - Parameters::k_param_rc_7_old, Parameters::k_param_rc_8_old, - Parameters::k_param_rc_9_old, Parameters::k_param_rc_10_old, - Parameters::k_param_rc_11_old, Parameters::k_param_rc_12_old, - Parameters::k_param_rc_13_old, Parameters::k_param_rc_14_old }; - const uint16_t old_aux_chan_mask = 0x3FFA; - SRV_Channels::upgrade_parameters(old_rc_keys, old_aux_chan_mask, &rcmap); + SRV_Channels::upgrade_parameters(); hal.console->printf("load_all took %uus\n", unsigned(micros() - before)); // set a more reasonable default NAVL1_PERIOD for rovers