1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/Modules
Stacey Sheldon f886af186d bootfault: add support for recovery from init failures
After 3 failed warm start attempts, the init sequence
will force the RAM version of the HWSettings object
to its defaults.  This should allow a user to regain
connectivity to a board that is continually faulting
during init.

This is accomplished by:
 - Incrementing a boot counter that is stored in the
   STM32 BKP registers.  These registers survive a
   warm start but are cleared on a cold start (ie. powerup).
 - On multiple failures, force hwsettings to defaults
   and raise the (new) BootFault alarm to prevent arming.
 - Resetting the boot counter whenever the system manages
   to successfully run the System Module task.

NOTE: This does not actually change the hwsettings object in
      flash.  That's up to the user.

This is intended to catch ONLY faults during early initialization.
It should not be used to recover from faults after the application
is up and running.
2011-12-30 23:05:38 -05:00
..
Actuator UAVObjects ; Modules/ManualControl: Fixed metadata interface and segfault when retrieving it 2011-11-30 09:20:46 +01:00
AHRSComms Initialize objects for guidance in the correct place. Init some objects in 2011-08-19 09:52:05 -05:00
Altitude Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
Attitude OP-565: Added the ability to do a trim flight to compute the accels for level flight 2011-12-21 15:25:00 -06:00
Battery Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
CameraStab code style: move variable into function and free 1 byte of RAM :-) 2011-11-13 18:27:52 +02:00
ComUsbBridge com-bridge: Make com-bridge an optional (and configurable) module 2011-12-30 23:05:36 -05:00
Example OP-423: simplify the MODULE_INITCALL macro and remove the ordering loops 2011-07-12 20:44:32 -07:00
FirmwareIAP Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
FlightPlan Initialize objects for guidance in the correct place. Init some objects in 2011-08-19 09:52:05 -05:00
GPS code style: move variable into function and free 1 byte of RAM :-) 2011-11-13 18:27:52 +02:00
Guidance Posix: fix object initialization where necessary 2011-08-19 18:36:30 +02:00
ManualControl UAVObjects ; Modules/ManualControl: Fixed metadata interface and segfault when retrieving it 2011-11-30 09:20:46 +01:00
MK/MKSerial OP-265 Flight reorganization of UAVObjects and Modules up a directory 2011-01-14 01:38:19 +00:00
Osd/OsdEtStd OP-174 ET OSD: barometric altitude works now, units must be set metric with E-Logger 2011-04-29 19:08:28 +03:00
Stabilization Stabilization fix typo 2011-09-12 11:56:01 -05:00
System bootfault: add support for recovery from init failures 2011-12-30 23:05:38 -05:00
Telemetry hwsettings: allow disabling of USB telemetry entirely 2011-12-30 23:05:38 -05:00