Commit Graph
69 Commits
Author SHA1 Message Date
Peter Barker 3708936c62 global: correct shebang lines to refernce python3
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Peter Barker a0ead6b52e AP_Generator: correct defines around IE backends
when someone turns the default off all backends should be off by default... a user would need to not only turn the default off but also explicitly disable the *other* ie24 driver if they only wanted one.
2025-06-10 13:29:34 +10:00
Peter Barker 715f55bd42 AP_Generator: disable generator library on <=204kB boards
we don't have many users of this, but the flash cost is real

Users can use the custom build server or they can use an OEM build to get this now
2025-06-10 13:29:34 +10:00
Peter Barker fc2c7a1e45 AP_Generator: remove line feeds from GCS_SEND_TEXT calls
these often make their way in when moving from some other printf-style debugging...
2025-05-30 22:36:07 +10:00
Peter Barker 633e51d884 AP_Generator: document IE24 and IEFC log messages 2025-05-20 19:40:32 +10:00
Peter Barker d4e5013bff AP_Generator: remove Python compatability code from test-loweheiser.py
In place while we were supporting both Py2 and Py3, no longer required
2025-05-14 11:42:47 +10:00
Peter Barker 692635104e AP_Generator: document the RICH generator message 2025-05-13 21:49:47 +10:00
Peter Barker 29e317d895 AP_Generator: rename GEN message to RICH message
... we have more than one sort of generator!
2025-05-12 22:01:03 -05:00
George Zogopoulos 39620db285 AP_Generator: Adding support for Loweheiser generator 2025-04-09 18:06:47 +10:00
Iampete1 d4f0d400b2 AP_Generator: FuelCell: increase max data rate limit 2025-03-04 11:03:03 +11:00
Peter Barker 6338d10b5f global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.

Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11:00
Peter Barker 5a2ef8e960 AP_Generator: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker 52291b622a AP_Generator: apply -Os to all cpp files 2024-12-17 11:11:27 +11:00
Peter Barkerandmuramura f7767d7fd0 AP_Generator: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Peter Barker 85f89812d5 AP_Generator: avoid use of int16_t-read 2024-07-02 10:13:24 +10:00
Andrew Tridgell c70c8657bc AP_Generator: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Iampete1 8a06ee4cf6 AP_Gernerator: IE 2400: MAV_SEVERITY level depends on error code 2024-03-12 11:05:21 +11:00
Peter Barker c2f77d0593 AP_Generator: tidy RichenPower defines 2024-02-20 09:27:43 +11:00
Peter Barker 9213eef56c AP_Generator: add ASSERT_STORAGE_SIZE macro
saves havin gto name the dummy variable yourself
2024-01-22 22:44:05 +11:00
Peter Barker 52c806e32e AP_Generator: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Peter Barker 82fe13bc00 AP_Generator: correct compilation if GCS_SEND_TEXT not available 2024-01-04 20:48:23 +11:00
Iampete1 a00b6b6f86 AP_Gernerator: FuelCell: rework error check to give error cleared msg 2023-11-28 11:27:14 +11:00
Iampete1 3b3c94ea07 AP_Generator: IE_2400: update low and critial error ranges for V2 protocol 2023-11-28 11:27:14 +11:00
Iampete1 36dd720e78 AP_Generator: IE 2400: fix V2 low and critical errors and add warnings 2023-11-28 11:27:14 +11:00
Iampete1 c91407d662 AP_Generator: IE 2400: only return custom msg if error is critial or low severity 2023-11-28 11:27:14 +11:00
Iampete1 c861e15853 AP_Gernerator: IE_2400: lengthen message buffer and print error num 2023-11-28 11:27:14 +11:00
Iampete1 90f7ed3410 AP_Generator: Add support for IE V2 protocol 2023-11-28 11:27:14 +11:00
Mykhailo Kuznietsov 3acd0b3817 AP_Generator: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Iampete1 f9c8ad8de8 AP_Generator: IE 650/800: does have fuel remaining 2023-09-26 10:47:50 +10:00
Peter Barker 4791e6f367 AP_Generator: use HAL_LOGGING_ENABLED 2023-09-23 13:59:42 +10:00
Peter Barker eb6f3f5135 AP_Generator: allow more libraries to compile with no HAL_GCS_ENABLED 2023-09-05 22:23:51 +10:00
Peter Barker 2ce61cce58 AP_Generator: rename generator define to fix feature extraction
pattern-matching requires a regular pattern.  Renaming the class would be bad, so  just rename the define
2023-08-16 17:35:59 +10:00
Peter Barker 41f622f892 AP_Generator: use minimize_features.inc for more features 2023-06-06 10:14:02 +10:00
Peter Barker 1e516a4dcb AP_Generator: turn RichenPower on on 2MB boards 2023-03-22 18:06:31 +11:00
Peter Barker 191e5eb9c9 AP_Generator: correct config boards include
Important to include AP_HAL_Boards.h directly, rather than relying on someone else having done it or getting it transitively
2023-03-19 09:08:41 +11:00
Peter Barker a32180f709 AP_Generator: rename fuel_remain_pct to fuel_remain_scale 2023-03-15 19:08:18 +11:00
Peter Barker b070217308 AP_Generator: add defines for generator backends 2023-03-14 10:34:05 +11:00
Peter Barker 89a77f84f1 AP_Generator: specify HAL_GENERATOR_ENABLED for periph in chibios_hwdef.py 2023-03-12 09:35:35 +11:00
Peter Barker 85501f8219 AP_BattMonitor: add defines for all battery backends 2023-03-10 08:48:24 +11:00
Peter Barker adc4bf66f8 AP_Generator: add and use AP_Generator_config.h 2023-03-10 08:48:24 +11:00
Peter Barker aa95dfb15e AP_Generator: rename has_fuel_remaining to has_fuel_remaining_pct 2023-02-02 16:16:05 +11:00
Peter Barker 9ae0eda879 AP_Generator: tidy includes of SRV_Channel.h 2023-01-25 22:30:55 +11:00
Peter Barker 6f3305a405 AP_Generator: remove GCS.h from header files 2022-11-16 18:29:07 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker 9acf4c88c8 AP_Generator: add AP_GENERATOR_RICHENPOWER_ENABLED 2022-07-19 09:09:05 +10:00
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