Skip to content

Commit

Permalink
SITL: default SIM_ENGINE_MUL to 0
Browse files Browse the repository at this point in the history
This makes SIM_ENGINE_FAIL work a little more intuitively, since it is
usually used to simulate a complete failure.
  • Loading branch information
robertlong13 committed Dec 17, 2024
1 parent 2988a9d commit ccb001f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tools/autotest/default_params/vee-gull_005.param
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ SIM_BATT_VOLTAGE,12.6
SIM_DRIFT_SPEED,0.05
SIM_DRIFT_TIME,5
SIM_ENGINE_FAIL,0
SIM_ENGINE_MUL,1
SIM_ENGINE_MUL,0
SIM_FLOAT_EXCEPT,1
SIM_FLOW_DELAY,0
SIM_FLOW_ENABLE,0
Expand Down
2 changes: 1 addition & 1 deletion libraries/SITL/SITL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const AP_Param::GroupInfo SIM::var_info[] = {
// @DisplayName: Engine failure thrust scaler
// @Description: Thrust from Motors in SIM_ENGINE_FAIL will be multiplied by this factor
// @Units: ms
AP_GROUPINFO("ENGINE_MUL", 8, SIM, engine_mul, 1),
AP_GROUPINFO("ENGINE_MUL", 8, SIM, engine_mul, 0),
// @Param: WIND_SPD
// @DisplayName: Simulated Wind speed
// @Description: Allows you to emulate wind in sim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ SIM_BATT_VOLTAGE,12.6
SIM_DRIFT_SPEED,0.05
SIM_DRIFT_TIME,5
SIM_ENGINE_FAIL,0
SIM_ENGINE_MUL,1
SIM_ENGINE_MUL,0
SIM_FLOAT_EXCEPT,1
SIM_FLOW_DELAY,0
SIM_FLOW_ENABLE,0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ SIM_BATT_VOLTAGE,12.6
SIM_DRIFT_SPEED,0.05
SIM_DRIFT_TIME,5
SIM_ENGINE_FAIL,0
SIM_ENGINE_MUL,1
SIM_ENGINE_MUL,0
SIM_FLOAT_EXCEPT,1
SIM_FLOW_DELAY,0
SIM_FLOW_ENABLE,0
Expand Down

0 comments on commit ccb001f

Please sign in to comment.