1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
LibrePilot/flight/Modules
Stacey Sheldon 5c0921e92c fault: add optional fault insertion module
This module and its associated settings uavo can be used
to test various fault conditions during initialization.

To enable the module, add the TEST_FAULTS=YES to your make
command line:
  make fw_coptercontrol TEST_FAULTS=YES

Once this module is part of your firmware load, you can
enable it in the hwsettings uavo and then select the
type of fault to insert by editing the faultsettings uavo.
On the next reset, the configured fault will be inserted
into the init sequence to allow you to test the boot fault
recovery code.

With a fault inserted, you should see 3 failed boot attempts
followed by a successful (recovery) boot.  You will see the
BootFault alarm set to Critical, and the RAM version of your
hwsettings will be reset to defaults.  Since the defaults have
all optional modules disabled, the fault module will be out of
the way during the recovery boot.

You can then "Load" the flash version of the hwsettings uavo
in the object browser, disable the Fault module and then "Save"
the hwsettings module back to the board.  The next reset will
boot normally without the fault inserted.
2011-12-30 23:05:39 -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
Fault fault: add optional fault insertion module 2011-12-30 23:05:39 -05: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