mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ICE Control Module: Added option for VTOL state (FW/Transition to FW) to start engine (#25948)
* ICE Control Module: Added option to use VTOL transition state to trigger ICE on/off states Signed-off-by: Mf-ff99 <force.j.mark@gmail.com> * ran make format Signed-off-by: Mf-ff99 <force.j.mark@gmail.com> * Update src/modules/internal_combustion_engine_control/InternalCombustionEngineControl.cpp to initialize vtol_vehicle_status_s correctly Initialize appropriately Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com> * ICE Module: adjusted VTOL logic to use vehicle_status Signed-off-by: Mf-ff99 <force.j.mark@gmail.com> --------- Signed-off-by: Mf-ff99 <force.j.mark@gmail.com> Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com>
This commit is contained in:
parent
0985c22701
commit
980956496b
@ -134,6 +134,12 @@ void InternalCombustionEngineControl::Run()
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ICESource::VtolStatus: {
|
||||
_user_request = (vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_FIXED_WING
|
||||
|| vehicle_status.in_transition_to_fw) ? UserOnOffRequest::On : UserOnOffRequest::Off;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
switch (_state) {
|
||||
|
||||
@ -108,6 +108,7 @@ private:
|
||||
ArmingState,
|
||||
Aux1,
|
||||
Aux2,
|
||||
VtolStatus,
|
||||
};
|
||||
|
||||
hrt_abstime _state_start_time{0};
|
||||
|
||||
@ -19,6 +19,7 @@ parameters:
|
||||
0: On arming - disarming
|
||||
1: Aux1
|
||||
2: Aux2
|
||||
3: On Vtol Transitions
|
||||
|
||||
ICE_CHOKE_ST_DUR:
|
||||
description:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user