mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:33:34 +08:00
Rename manual_lockdown to kill for clarity
This commit is contained in:
@@ -458,7 +458,7 @@ bool MixingOutput::update()
|
||||
|
||||
// Send output if any function mapped or one last disabling sample
|
||||
if (!all_disabled || !_was_all_disabled) {
|
||||
if (!_armed.armed && !_armed.manual_lockdown) {
|
||||
if (!_armed.armed && !_armed.kill) {
|
||||
_actuator_test.overrideValues(outputs, _max_num_outputs);
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ bool MixingOutput::update()
|
||||
void
|
||||
MixingOutput::limitAndUpdateOutputs(float outputs[MAX_ACTUATORS], bool has_updates)
|
||||
{
|
||||
if (_armed.lockdown || _armed.manual_lockdown) {
|
||||
if (_armed.lockdown || _armed.kill) {
|
||||
// overwrite outputs in case of lockdown with disarmed values
|
||||
for (size_t i = 0; i < _max_num_outputs; i++) {
|
||||
_current_output_value[i] = _disarmed_value[i];
|
||||
|
||||
@@ -148,13 +148,13 @@ public:
|
||||
_actuator_test_pub.publish(actuator_test);
|
||||
}
|
||||
|
||||
void sendActuatorArmed(bool armed, bool termination = false, bool manual_lockdown = false, bool prearm = false)
|
||||
void sendActuatorArmed(bool armed, bool termination = false, bool kill = false, bool prearm = false)
|
||||
{
|
||||
actuator_armed_s actuator_armed{};
|
||||
actuator_armed.timestamp = hrt_absolute_time();
|
||||
actuator_armed.armed = armed;
|
||||
actuator_armed.termination = termination;
|
||||
actuator_armed.manual_lockdown = manual_lockdown;
|
||||
actuator_armed.kill = kill;
|
||||
actuator_armed.prearmed = prearm;
|
||||
_actuator_armed_pub.publish(actuator_armed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user