Rover: use @CopyValuesFrom for MODEn parameters

This commit is contained in:
Peter Barker 2021-12-14 15:55:46 +11:00 committed by Andrew Tridgell
parent 08a8b3f155
commit 4e42986e19

View File

@ -184,35 +184,35 @@ const AP_Param::Info Rover::var_info[] = {
// @Param: MODE2 // @Param: MODE2
// @DisplayName: Mode2 // @DisplayName: Mode2
// @Description: Driving mode for switch position 2 (1231 to 1360) // @Description: Driving mode for switch position 2 (1231 to 1360)
// @Values: 0:Manual,1:Acro,3:Steering,4:Hold,5:Loiter,6:Follow,7:Simple,10:Auto,11:RTL,12:SmartRTL,15:Guided // @CopyValuesFrom: MODE1
// @User: Standard // @User: Standard
GSCALAR(mode2, "MODE2", Mode::Number::MANUAL), GSCALAR(mode2, "MODE2", Mode::Number::MANUAL),
// @Param: MODE3 // @Param: MODE3
// @DisplayName: Mode3 // @DisplayName: Mode3
// @Description: Driving mode for switch position 3 (1361 to 1490) // @Description: Driving mode for switch position 3 (1361 to 1490)
// @Values: 0:Manual,1:Acro,3:Steering,4:Hold,5:Loiter,6:Follow,7:Simple,10:Auto,11:RTL,12:SmartRTL,15:Guided // @CopyValuesFrom: MODE1
// @User: Standard // @User: Standard
GSCALAR(mode3, "MODE3", Mode::Number::MANUAL), GSCALAR(mode3, "MODE3", Mode::Number::MANUAL),
// @Param: MODE4 // @Param: MODE4
// @DisplayName: Mode4 // @DisplayName: Mode4
// @Description: Driving mode for switch position 4 (1491 to 1620) // @Description: Driving mode for switch position 4 (1491 to 1620)
// @Values: 0:Manual,1:Acro,3:Steering,4:Hold,5:Loiter,6:Follow,7:Simple,10:Auto,11:RTL,12:SmartRTL,15:Guided // @CopyValuesFrom: MODE1
// @User: Standard // @User: Standard
GSCALAR(mode4, "MODE4", Mode::Number::MANUAL), GSCALAR(mode4, "MODE4", Mode::Number::MANUAL),
// @Param: MODE5 // @Param: MODE5
// @DisplayName: Mode5 // @DisplayName: Mode5
// @Description: Driving mode for switch position 5 (1621 to 1749) // @Description: Driving mode for switch position 5 (1621 to 1749)
// @Values: 0:Manual,1:Acro,3:Steering,4:Hold,5:Loiter,6:Follow,7:Simple,10:Auto,11:RTL,12:SmartRTL,15:Guided // @CopyValuesFrom: MODE1
// @User: Standard // @User: Standard
GSCALAR(mode5, "MODE5", Mode::Number::MANUAL), GSCALAR(mode5, "MODE5", Mode::Number::MANUAL),
// @Param: MODE6 // @Param: MODE6
// @DisplayName: Mode6 // @DisplayName: Mode6
// @Description: Driving mode for switch position 6 (1750 to 2049) // @Description: Driving mode for switch position 6 (1750 to 2049)
// @Values: 0:Manual,1:Acro,3:Steering,4:Hold,5:Loiter,6:Follow,7:Simple,10:Auto,11:RTL,12:SmartRTL,15:Guided // @CopyValuesFrom: MODE1
// @User: Standard // @User: Standard
GSCALAR(mode6, "MODE6", Mode::Number::MANUAL), GSCALAR(mode6, "MODE6", Mode::Number::MANUAL),