From 3ec97ea900fa5aa244c91e3fdafe6f499deee2c3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 30 Dec 2022 13:10:57 +1100 Subject: [PATCH] Blimp: implement parameter CopyFieldsFrom and use it --- Blimp/Parameters.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Blimp/Parameters.cpp b/Blimp/Parameters.cpp index 542e35ef35..cc67d148d0 100644 --- a/Blimp/Parameters.cpp +++ b/Blimp/Parameters.cpp @@ -146,38 +146,33 @@ const AP_Param::Info Blimp::var_info[] = { GSCALAR(flight_mode1, "FLTMODE1", (uint8_t)FLIGHT_MODE_1), // @Param: FLTMODE2 + // @CopyFieldsFrom: FLTMODE1 // @DisplayName: Flight Mode 2 // @Description: Flight mode when Channel 5 pwm is >1230, <= 1360 - // @CopyValuesFrom: FLTMODE1 - // @User: Standard GSCALAR(flight_mode2, "FLTMODE2", (uint8_t)FLIGHT_MODE_2), // @Param: FLTMODE3 + // @CopyFieldsFrom: FLTMODE1 // @DisplayName: Flight Mode 3 // @Description: Flight mode when Channel 5 pwm is >1360, <= 1490 - // @CopyValuesFrom: FLTMODE1 - // @User: Standard GSCALAR(flight_mode3, "FLTMODE3", (uint8_t)FLIGHT_MODE_3), // @Param: FLTMODE4 + // @CopyFieldsFrom: FLTMODE1 // @DisplayName: Flight Mode 4 // @Description: Flight mode when Channel 5 pwm is >1490, <= 1620 - // @CopyValuesFrom: FLTMODE1 - // @User: Standard GSCALAR(flight_mode4, "FLTMODE4", (uint8_t)FLIGHT_MODE_4), // @Param: FLTMODE5 + // @CopyFieldsFrom: FLTMODE1 // @DisplayName: Flight Mode 5 // @Description: Flight mode when Channel 5 pwm is >1620, <= 1749 - // @CopyValuesFrom: FLTMODE1 - // @User: Standard GSCALAR(flight_mode5, "FLTMODE5", (uint8_t)FLIGHT_MODE_5), // @Param: FLTMODE6 + // @CopyFieldsFrom: FLTMODE1 // @DisplayName: Flight Mode 6 // @Description: Flight mode when Channel 5 pwm is >=1750 - // @CopyValuesFrom: FLTMODE1 - // @User: Standard GSCALAR(flight_mode6, "FLTMODE6", (uint8_t)FLIGHT_MODE_6), // @Param: FLTMODE_CH