-
Notifications
You must be signed in to change notification settings - Fork 14.7k
ICE Control Module: Added option to use VTOL transition state to trig… #25948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ger ICE on/off states Signed-off-by: Mf-ff99 <[email protected]>
src/modules/internal_combustion_engine_control/InternalCombustionEngineControl.cpp
Outdated
Show resolved
Hide resolved
|
Hi Mark! Run |
Signed-off-by: Mf-ff99 <[email protected]>
…ionEngineControl.cpp to initialize vtol_vehicle_status_s correctly Initialize appropriately Co-authored-by: Jacob Dahl <[email protected]>
sfuhrer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! Just some details to figure out, but the intent makes sense.
| if ((vtol_status.vehicle_vtol_state == vtol_vehicle_status_s::VEHICLE_VTOL_STATE_FW || | ||
| vtol_status.vehicle_vtol_state == vtol_vehicle_status_s::VEHICLE_VTOL_STATE_TRANSITION_TO_FW) && | ||
| vehicle_status.arming_state == vehicle_status_s::ARMING_STATE_ARMED) { | ||
| user_request = UserOnOffRequest::On; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| user_request = UserOnOffRequest::On; | |
| _user_request = UserOnOffRequest::On; |
As it changed 2 weeks ago in https://github.com/PX4/PX4-Autopilot/pull/25923/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just do
_user_request = vehilce_status.vehicle_type == VEHICLE_TYPE_FIXED_WING || vehilce_status.in_transition_to_fw;
| #include <uORB/topics/vehicle_status.h> | ||
| #include <uORB/topics/rpm.h> | ||
| #include <uORB/topics/actuator_motors.h> | ||
| #include <uORB/topics/vtol_vehicle_status.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have all the info you need already in vehicle_status, see my other comment.
Allows users the option to configure the ICE Control Module to trigger on/off states based on VTOL transition state for VTOLs utilizing a combustion engine
Tested in SITL
https://review.px4.io/plot_app?log=94bf9ec5-d621-4667-b77a-f19f2972ced0