Commit Graph

61 Commits

Author SHA1 Message Date
Bob Long
e57994f28f AP_ICEngine: fix send_text severities 2024-09-27 16:12:28 +10:00
Loki077
772cd1dae7 AP_ICEngine: add max retrial of cranking
Added Param MAX_RETRY which If set 0 or less, then there is no limit to retrials. If set to a value greater than 0 then the engine will retry starting the engine this many times before giving up.
2024-09-27 16:12:28 +10:00
Bob Long
8797a07833 AP_ICEngine: clarify ICE_OPTIONS:2 description 2024-09-25 23:44:52 +10:00
Bob Long
8d9ac6451f AP_ICEngine: don't run engine with safety engaged 2024-09-25 23:44:52 +10:00
Henry Wurzburg
4107151b31 AP_ICEngine: add legacy label to gps and ice params 2024-09-06 14:46:50 +10:00
Iampete1
98d9890bf1 AP_ICEngine: convert from local servo endpoints and rc channel params 2024-08-27 09:37:34 +10:00
Iampete1
44918b0e75 AP_ICEngine: move to new constant dt low pass filter class 2024-08-20 09:09:41 +10:00
Loki077
94059ed7bc AP_ICEngine: Add Option to Control the direction of Cranking.
Added the 5th bit to the ICE_OPTION parameter to enable CRANK_DIR_REVERSE control, specifically for managing Hirth engine direction using AP_ICEngine_TCA9554.
2024-08-19 20:21:57 +10:00
Iampete1
c271771a1e AP_ICEngine: stop engine in E-Stop 2024-08-06 09:56:44 +10:00
Peter Barker
ee3c9765a4 AP_ICEngine: correct compilation when ICEngine disabled
the starter class does things with various other objects which may not be avaialb.e  Honour AP_ICENGINE_ENABLED
2024-02-20 09:16:23 +11:00
Iampete1
86a199c1bf AP_ICEngine: add support for starter relay 2023-12-20 19:29:50 +11:00
Iampete1
8ce490d985 AP_ICEngine: move to new relay functions 2023-12-19 10:01:01 +11:00
Pradeep CK
07d76a87fd AP_ICEngine: support relay for ignition and I2C for starter 2023-11-17 13:09:02 +11:00
Henry Wurzburg
dfdd1492ff AP_ICEngine:update OPTIONS metadata 2023-10-28 15:30:31 +11:00
Michael du Breuil
9486bf2b9c AP_ICEngine: Add a flag to allow starting the engine while disarmed 2023-10-24 14:11:39 -07:00
Tom Pittenger
eeb7dc26fb AP_ICEngine: minor OPTIONS param spelling fix 2023-09-27 08:43:27 -07:00
Michael du Breuil
e8deb491de AP_ICEngine: Add an option to disable starting while disarmed 2023-09-27 08:43:27 -07:00
Andrew Tridgell
9c7c995185 AP_ICEngine: added ICE_DISABLED state 2023-09-27 11:43:45 +10:00
Peter Barker
e7b717167b AP_ICEngine: allow more libraries to compile with no HAL_GCS_ENABLED 2023-09-05 22:23:51 +10:00
Iampete1
693e35b9c5 AP_ICEngine: stop engine on parachute release 2023-09-05 10:03:49 +10:00
Andrew Tridgell
383994c466 AP_ICEngine: allow for ICE with no RPM support 2023-05-30 07:29:55 +10:00
Andrew Tridgell
2b45b235ad AP_ICEngine: fixed a bug engine control when running
if you have a mission item for engine control with delayed start at
height and the engine is already running them it would put the ICE
subsystem into a state where it would no longer start the engine

It was actually 2 bugs:

 - an engine control to do a height delayed start should be ignored if
   the engine is already running. This prevents an engine control to
   start the engine from stopping the engine

 - a start_chan high should always try to start the engine
   immediately, even if in the wait state
2023-05-10 18:01:21 +10:00
Andrew Tridgell
f366cbbcb4 AP_ICEngine: added allow_throttle_while_disarmed() 2022-11-14 11:14:09 +11:00
Andrew Tridgell
bcdf3d5d60 AP_ICEngine: report when engine goes into run state 2022-10-07 07:53:50 +11:00
Peter Barker
8af84cf236 AP_ICEngine: add and use AP_ICENGINE_ENABLE 2022-07-22 08:48:16 +10:00
Andrew Tridgell
0731b5cfa0 AP_ICEngine: fixed RPM filter rate and plane.G_Dt
AP_ICEngine runs at 10Hz, so we need to use 10 for the filter.

As this runs in a constructor it also caused memoisation of the wrong
AP_Scheduler _loop_period_s which resulted in plane.G_Dt always being
1/50, which is a much more serious issue

this is a temporary fix, we need a better one soon
2022-07-20 07:33:37 +10:00
Andrew Tridgell
798ab5d859 AP_ICEngine: added option for throttle control while disarmed
this uses the passed in base throttle when disarmed
2022-07-18 20:55:56 +10:00
Andrew Tridgell
32e1767647 AP_ICEngine: added option to force low throttle on engine off
this fixes an issue with EFI engines that use low throttle demand to
stop the engine, instead of using an ignition channel. This option
needs to be set on these aircraft to prevent the idle governor or the
fwd throttle integrator in quadplanes from keeping the engine on when
the pilot asks for it to be off.
2022-07-10 06:56:58 +10:00
Peter Barker
61e65ca5f2 AP_ICEngine: add tests for ICE Planes 2022-07-01 19:33:51 +10:00
TunaLobster
53a5043ac4 AP_ICEngine: Change throttle_override to pass in current throttle value 2022-05-26 11:30:41 -07:00
TunaLobster
9e26556408 AP_ICEngine: Add redline governor and RPM filter
Adds a top end governor to protect the engine from exceeding design limits. Similar to idle governor.
Adds a LPF at 0.5 Hz for RPM.
2022-05-26 11:30:41 -07:00
Peter Barker
0ea46a93a1 AP_ICEngine: tidy includes 2022-05-03 09:14:58 +10:00
Peter Barker
677466e60b AP_ICEngine: include cleanups 2022-03-01 11:21:33 +11:00
TunaLobster
642bd85306 AP_ICEngine: spelling and grammer fixes inc in param description 2021-08-19 10:00:16 +10:00
Hwurzburg
0ffa83b2dd AP_ICEngine: add note about ICE_STARTCHN_MIN param 2021-05-11 09:12:05 +10:00
Tom Pittenger
8019cc160a AP_ICEngine: make it obvious that update_idle_gov does nothing if disabled 2021-02-18 09:45:30 +11:00
Pierre Kancir
9362039feb AP_ICEngine: use AUX_PWM_TRIGGER_LOW and AUX_PWM_TRIGGER_HIGH 2021-02-10 18:48:06 +11:00
Andrew Tridgell
96dd354131 AP_ICEngine: check for valid RC input for ICE 2020-09-14 12:20:55 +10:00
Andrew Tridgell
890fc96d20 AP_ICEngine: added ICE_STARTCHN_MIN
this gives a min PWM value to trigger an engine stop. It makes RC
glitches leading to engine stop much less likely
2020-09-14 12:20:55 +10:00
Dan Laks
54c827a792 AP_ICEngine: Initialize start_chan_last_value and catch RC values less than 800 2020-09-14 12:20:55 +10:00
Andrew Tridgell
23da0ea8b6 AP_ICEngine: add debounce to RC input for ICE_START_CHAN 2020-09-14 12:20:55 +10:00
Andrew Tridgell
a93aa27cc1 AP_ICEngine: convert to new get_rpm() API 2020-03-12 08:36:40 +11:00
Peter Barker
370e378bf6 AP_ICEngine: correct IDLE_DB parameter documentation 2020-02-19 15:09:16 +11:00
Andrew Tridgell
5098e3f79e AP_ICEngine: added ICE_OPTIONS
option to kill ignition on RC failsafe. This is needed for some RC
model clubs
2019-12-18 12:28:41 +11:00
Andrew Tridgell
ebf0c48903 AP_ICEngine: added idle governor 2019-11-17 20:10:54 +11:00
Patrick José Pereira
b54399b9a7 AP_ICEngine: Add missing header guard
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-05-20 23:50:23 +01:00
tom pittenger
cd920c7609 AP_ICEngine: sanity check param values 2019-04-17 16:48:51 -07:00
IamPete1
3b9125956e AP_ICEngine: add idle throttle percentage 2019-04-17 16:48:51 -07:00
Tom Pittenger
4f41aa19bf AP_ICEngine: add singleton and remove unnecessary variable init 2019-02-20 00:51:03 -07:00
Tom Pittenger
79c78ba965 AP_ICEngine: ICE to use ahrs singleton 2019-02-05 15:34:08 +11:00