Commit Graph

51 Commits

Author SHA1 Message Date
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
Randy Mackay d4a05c8ada AP_ICEngine: minor format and typo fixes 2018-12-27 11:53:10 +09:00
Peter Barker 80a4083fc7 AP_ICEngine: use rc() method to get rc singleton 2018-08-01 12:11:30 +09:00
Michael du Breuil ddd32d3339 AP_ICEngine: Use RC_Channels instead of hal.rcin 2018-04-11 21:47:07 +01:00
Peter Barker 1beb1550ae AP_IceEngine: eliminate GCS_MAVLINK::send_statustext_all 2017-07-11 23:53:53 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas 6ac8aeff05 AP_ICEngine: Use SI units conventions in parameter units
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
2017-05-17 18:07:25 +10:00
Michael du Breuil 42b6ca9eed AP_ICEngine: Update for AHRS NED changes 2017-02-13 09:23:14 +11:00
Andrew Tridgell 04ce73d8d7 AP_ICEngine: adapt to new RC_Channel API 2017-01-12 17:39:37 +11:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Randy Mackay 7d0cac15fb AP_ICEngine: add casting to avoid compiler warnings 2016-08-01 09:41:32 +09:00
Andrew Tridgell d25396543c AP_ICEngine: report takeoff height set 2016-07-25 15:45:58 +10:00