Sub: Change software type to 40 to identify as Sub instead of copter

This commit is contained in:
Jacob Walser 2016-12-09 12:17:29 -05:00 committed by Andrew Tridgell
parent bb3e32d391
commit 10ff379938
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ const AP_Param::Info Sub::var_info[] = {
// @Param: SYSID_SW_TYPE
// @DisplayName: Software Type
// @Description: This is used by the ground station to recognise the software type (eg ArduPlane vs ArduCopter)
// @Values: 0:ArduPlane,4:AntennaTracker,10:Copter,20:Rover
// @Values: 0:ArduPlane,4:AntennaTracker,10:Copter,20:Rover,40:ArduSub
// @User: Advanced
// @ReadOnly: True
GSCALAR(software_type, "SYSID_SW_TYPE", Parameters::k_software_type),

View File

@ -24,7 +24,7 @@ public:
// GCS will interpret values 0-9 as ArduPilotMega. Developers may use
// values within that range to identify different branches.
//
static const uint16_t k_software_type = 10; // 0 for APM
static const uint16_t k_software_type = 40; // 0 for APM
// trunk
// Parameter identities.