mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_MotorsSingle: resolve param conflict with TradHeli
Also rename servo reverse parameters to be consistent with tricopter
This commit is contained in:
parent
8dc7cf7fa8
commit
78b49fb4c6
@ -28,39 +28,36 @@ extern const AP_HAL::HAL& hal;
|
|||||||
|
|
||||||
|
|
||||||
const AP_Param::GroupInfo AP_MotorsSingle::var_info[] PROGMEM = {
|
const AP_Param::GroupInfo AP_MotorsSingle::var_info[] PROGMEM = {
|
||||||
// 0 was used by TB_RATIO
|
// variables from parent vehicle
|
||||||
// 1,2,3 were used by throttle curve
|
AP_NESTEDGROUPINFO(AP_Motors, 0),
|
||||||
|
|
||||||
// @Param: SPIN_ARMED
|
// parameters 1 ~ 29 reserved for tradheli
|
||||||
// @DisplayName: Motors always spin when armed
|
// parameters 30 ~ 39 reserved for tricopter
|
||||||
// @Description: Controls whether motors always spin when armed (must be below THR_MIN)
|
// parameters 40 ~ 49 for single copter and coax copter (these have identical parameter files)
|
||||||
// @Values: 0:Do Not Spin,70:VerySlow,100:Slow,130:Medium,150:Fast
|
|
||||||
// @User: Standard
|
|
||||||
AP_GROUPINFO("SPIN_ARMED", 5, AP_MotorsSingle, _spin_when_armed, AP_MOTORS_SPIN_WHEN_ARMED),
|
|
||||||
|
|
||||||
// @Param: REV_ROLL
|
// @Param: ROLL_SV_REV
|
||||||
// @DisplayName: Reverse roll feedback
|
// @DisplayName: Reverse roll feedback
|
||||||
// @Description: Ensure the feedback is negative
|
// @Description: Ensure the feedback is negative
|
||||||
// @Values: -1:Opposite direction,1:Same direction
|
// @Values: -1:Reversed,1:Normal
|
||||||
AP_GROUPINFO("REV_ROLL", 6, AP_MotorsSingle, _rev_roll, AP_MOTORS_SING_POSITIVE),
|
AP_GROUPINFO("ROLL_SV_REV", 40, AP_MotorsSingle, _rev_roll, AP_MOTORS_SING_POSITIVE),
|
||||||
|
|
||||||
// @Param: REV_PITCH
|
// @Param: PITCH_SV_REV
|
||||||
// @DisplayName: Reverse pitch feedback
|
// @DisplayName: Reverse pitch feedback
|
||||||
// @Description: Ensure the feedback is negative
|
// @Description: Ensure the feedback is negative
|
||||||
// @Values: -1:Opposite direction,1:Same direction
|
// @Values: -1:Reversed,1:Normal
|
||||||
AP_GROUPINFO("REV_PITCH", 7, AP_MotorsSingle, _rev_pitch, AP_MOTORS_SING_POSITIVE),
|
AP_GROUPINFO("PITCH_SV_REV", 41, AP_MotorsSingle, _rev_pitch, AP_MOTORS_SING_POSITIVE),
|
||||||
|
|
||||||
// @Param: REV_YAW
|
// @Param: YAW_SV_REV
|
||||||
// @DisplayName: Reverse yaw feedback
|
// @DisplayName: Reverse yaw feedback
|
||||||
// @Description: Ensure the feedback is negative
|
// @Description: Ensure the feedback is negative
|
||||||
// @Values: -1:Opposite direction,1:Same direction
|
// @Values: -1:Reversed,1:Normal
|
||||||
AP_GROUPINFO("REV_YAW", 8, AP_MotorsSingle, _rev_yaw, AP_MOTORS_SING_POSITIVE),
|
AP_GROUPINFO("YAW_SV_REV", 42, AP_MotorsSingle, _rev_yaw, AP_MOTORS_SING_POSITIVE),
|
||||||
|
|
||||||
// @Param: SV_SPEED
|
// @Param: SV_SPEED
|
||||||
// @DisplayName: Servo speed
|
// @DisplayName: Servo speed
|
||||||
// @Description: Servo update speed in hz
|
// @Description: Servo update speed in hz
|
||||||
// @Values: 50, 125, 250
|
// @Values: 50, 125, 250
|
||||||
AP_GROUPINFO("SV_SPEED", 9, AP_MotorsSingle, _servo_speed, AP_MOTORS_SINGLE_SPEED_DIGITAL_SERVOS),
|
AP_GROUPINFO("SV_SPEED", 43, AP_MotorsSingle, _servo_speed, AP_MOTORS_SINGLE_SPEED_DIGITAL_SERVOS),
|
||||||
|
|
||||||
AP_GROUPEND
|
AP_GROUPEND
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user