Commit Graph

29 Commits

Author SHA1 Message Date
px4dev 57429fd12c Convert HIL and FMU drivers to the new multirate PWM interface. 2013-03-12 22:22:49 -07:00
px4dev 6cf0758b24 Changes for multi-rate PWM output; default and alternate rates. ioctl protocol, PX4IO support. 2013-03-12 22:22:49 -07:00
Lorenz Meier 74bcf29c69 Refactored debug level into proper register, px4io status now correctly reads it. Added more of the missing alarms clear logic, alarms reporting now consistent. Adding missing sign change on mode switch, fixes override issue when attempting to switch to auto mode. Pending outdoor tests 2013-03-09 13:20:05 +01:00
Lorenz Meier ebac51cad8 Working on restart resilience, hunting down multi-load mixer issue (still present) 2013-03-07 19:47:43 +01:00
Simon Wilks 8f5dac3740 Let's just init the status flag every time we send a config update 2013-03-07 01:47:02 +01:00
Simon Wilks ae98836db8 Correct RC config sanity checking and report back when RC config errors occur. 2013-03-06 20:37:01 +01:00
px4dev f35c5d600a Don't mask out the enable bit when accepting R/C input config updates. 2013-02-24 14:32:04 -08:00
px4dev 8c7e2546ed Simplify the PX4IO main loop to cut down on memory consumption. 2013-02-24 00:09:37 -08:00
Andrew Tridgell 317515fb6a px4io: added INAIR_RESTART enable/disable flags
the autopilot code needs to know that in-air restart may happen, so it
should be something that is enabled, rather than on by default.
2013-02-18 14:16:09 +11:00
Andrew Tridgell 9f15f38e57 Merged, removed unneeded line 2013-02-17 18:29:18 +01:00
Lorenz Meier 56bf9855a8 Finished and tested in-air restore of arming state, as long as both boards reset at the same time armings state is now retained 2013-02-17 17:47:26 +01:00
Lorenz Meier 038037d676 Allow to in-air restore the FMU and IO arming state if only one of the two fails 2013-02-17 16:06:33 +01:00
Andrew Tridgell 04bea8678e Merged debuglevel command from Tridge 2013-02-17 13:03:36 +01:00
Lorenz Meier 598622a00f Slightly adjusted battery voltage measurement after calibration against B&K Precision lab supply with beefy wiring. Needs more cross-validation. 2013-02-16 18:16:29 +01:00
Lorenz Meier 4595cc65b8 Reworked manual override flag, reworked arming slightly. Pending testing 2013-02-13 08:38:31 +01:00
Lorenz Meier 857fe5d405 Fixes to RC config transmission from Simon Wilks 2013-02-12 09:20:11 +01:00
px4dev a645a388bc Fix a sign error 2013-02-09 00:53:51 -08:00
px4dev 981477c785 Re-order register page variables to match the order registers are defined in the protocol header. 2013-01-26 19:24:18 -08:00
px4dev 11796e27f2 Simplify and tidy the handling of page buffer selection on the readout path. 2013-01-26 14:25:22 -08:00
px4dev 3a8bbe837e Allow readback of the direct PWM outputs (this mirrors the PWM servo outputs) 2013-01-26 13:14:15 -08:00
px4dev b46d05835b Implement settable failsafe values for PWM outputs.
By default in failsafe mode, PWM output pulses are not generated.
2013-01-25 22:58:33 -08:00
Andrew Tridgell f8bea6d07b px4io: fixed cpp error 2013-01-25 21:36:19 -08:00
Andrew Tridgell 57d028fddd px4io: fixed array reference bug 2013-01-25 21:35:58 -08:00
px4dev b34311915a Safeguard against back-to-back transactions while setting up to handle a register read request. 2013-01-23 18:56:58 -08:00
px4dev b4dcdae03d Add support for battery current scaling. Add feedback for mixer load operations. 2013-01-15 22:22:15 -08:00
px4dev 112f5ea969 Add support for raw PWM passthrough from FMU via IO. 2013-01-15 00:41:13 -08:00
px4dev 5c60ed9a94 Fix up FMU input timeout handling.
Fix the FMU auto OK LED status.
Strip out unused fields from the system state structure.
2013-01-14 01:11:29 -08:00
px4dev 4e38615595 Major workover of the PX4IO firmware for I2C operation. 2013-01-13 19:05:01 -08:00
px4dev 8ebe21b27b Checkpoint - I2C protocol register decode 2013-01-13 19:05:01 -08:00