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:
MarkieMark 2025-12-01 10:46:51 -05:00 committed by GitHub
parent 0985c22701
commit 980956496b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -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) {

View File

@ -108,6 +108,7 @@ private:
ArmingState,
Aux1,
Aux2,
VtolStatus,
};
hrt_abstime _state_start_time{0};

View File

@ -19,6 +19,7 @@ parameters:
0: On arming - disarming
1: Aux1
2: Aux2
3: On Vtol Transitions
ICE_CHOKE_ST_DUR:
description: