Commit Graph

24 Commits

Author SHA1 Message Date
Peter Barker c5f1d1db28 AP_Generator: inhibit maintenance warning based on GEN_OPTIONS bit 2022-05-25 18:17:05 +10:00
Peter Barker bc0befc737 AP_Generator: mask MaintenanceRequired out from error bits in prearm
Turns out the generator sets this bit when it reaches the
maintenance-required state.

Mask it out from the error bits so the user can still fly.

Add some periodically-run code to complain about maintenance-required,
separate from the prearm checks.
2022-05-25 18:17:05 +10:00
murata be89285d10 AP_Generator: Change from division to multiplication 2022-03-16 18:41:52 +11:00
Andy Piper eb259971e0 AP_Generator: nuke clang warnings 2022-03-03 16:34:14 +11:00
Peter Barker 88b8a7d64e AP_Generator: include cleanups 2022-03-01 11:21:33 +11:00
Peter Barker f25c1ef954 AP_Generator: reserve ID for Loweheiser mavlink-connected generator 2022-01-25 09:44:41 +11:00
Iampete1 f0bc041b86 AP_Gererator: IE Fuel Cell: reset health timer at init 2021-10-08 19:34:34 -04:00
Peter Barker 5433cbe9a5 AP_Generator: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED 2021-09-26 19:24:09 +10:00
Gone4Dirt 30589f9b29 AP_Generator: Make unhealthy driver message persist 2021-09-21 11:14:03 +10:00
Iampete1 34f5b800b6 AP_Generator: atof to strtof 2021-09-15 17:36:12 +10:00
Andrew Tridgell 17b91903ed AP_Generator: mark logger Write() calls as streaming where appropriate 2021-08-18 10:20:03 +10:00
Patrick José Pereira 9965cbb79a AP_Generator: Simplify boolean expression
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-23 10:30:05 +11:00
Gone4Dirt c96ca2483e AP_Generator: Make sensor unhealthy msg consistent with other sensors 2021-01-06 09:59:34 +11:00
Peter Barker b21fdb7743 AP_Generator: use enum class For Battery Failsafe 2020-12-07 15:20:14 +11:00
Tom Pittenger 87813b9401 AP_Generator: AP_Periph should not include Generator by default 2020-11-25 14:20:53 +11:00
Gone4Dirt 8cfe4fc9f7 AP_Generator: Split into frontend-backend and add IE fuel cells 2020-11-24 12:54:52 +11:00
Peter Barker 10e0646251 AP_Generator: remove unused variables 2020-10-01 21:13:20 +10:00
Peter Barker c8a368d896 AP_Generator: update prearm checks, fill new GENERATOR_STATUS fields
AP_Generator_Richenpower: only update servo channel while disarmed

AP_Generator_Richenpower: move warning for servo output channel to prearm checks

AP_Generator: state is simply off if RPM is zero

AP_Generator: send runtime and seconds-until-maintenance in GENERATOR_STATUS

AP_Generator_RichenPower: correct runtime seconds/minutes position in packets

AP_Generator_RichenPower: correct and expand use of mode packet entry

AP_Generator_RichenPower: fail prearm check if generator not seen

AP_Generator_RichenPower: make prearm check for needing maintenance  warn-only

AP_Generator_RichenPower: rename runstate to pilot_desired_runstate

AP_Generator_RichenPower: tweak decoding of time-to-maintenance

AP_Generator: add hysteresis for warmup/cooldown in IDLE

AP_Generator: stop generator in case of vehicle crash

AP_Generator: generator must go through idle from run to stop

AP_Generator: emit statustext when generator configured but not present

AP_Generator: do not log if LOG_BITMASK is zero

AP_Generator: do not warn user if generator configured but not present

They won't be able to start the generator if we can't see it.

Don't update the runstate if no readings seen.

AP_Generator: do not send generator status if no readings seen
2020-08-05 16:26:19 +09:00
Dr.-Ing. Amilcar do Carmo Lucas 47bf016a62 AP_Generator: adapt to upstream mavlink changes 2020-07-29 14:34:22 +10:00
Andrew Tridgell 0c87b2d885 AP_Generator: fixed misaligned access in RicenPower 2020-07-07 10:23:00 +10:00
Peter Barker 1639bd7d09 AP_Generator: remove heat model for generator
It was agreed that the existing hyteresis in the H2 controller was
sufficient
2020-07-03 08:21:42 +09:00
Peter Barker c5ac42d985 AP_Generator_RichenPower: allow operation with no generator present 2020-07-03 08:21:42 +09:00
Peter Barker df8d8cefd6 AP_Generator: use new mavlink generator status flags 2020-07-03 08:21:42 +09:00
Peter Barker e5367232b3 AP_Generator: add serial driver to read from RichenPower hybrid generators
AP_RichenPower: add support for sending HYBRID message
2020-07-03 08:21:42 +09:00