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
a493824850
Fixed wrong comment
2013-03-07 18:06:20 +01:00
Lorenz Meier
ff5ca82c75
Fixed throttle scaling issue, harmonized FMU and IO RC scaling code
2013-03-07 11:45:23 +01:00
Lorenz Meier
c993ba5bbc
Fixed minor scaling issue, throttle range still half
2013-03-07 10:27:55 +01:00
Lorenz Meier
4797c192be
Fixed RC calibration scaling / assignment
2013-03-07 09:49:12 +01:00
Lorenz Meier
2284e668eb
Removed bound checking assertions
2013-02-25 08:53:00 +01:00
Lorenz Meier
5cc1e30e4f
Corrected assertion range
2013-02-25 08:31:43 +01:00
px4dev
e622835555
Bump the task stack up to 1200 bytes to give the mixer loader some headroom. This addresses the last reported issue with this branch.
2013-02-24 16:20:04 -08:00
px4dev
6ac7e8b7e4
Scale R/C inputs around the preset center, not the nominal center.
2013-02-24 15:56:02 -08:00
px4dev
f245d6b1a7
Use hrt_elapsed_time() in cases where we can't be sure the timestamp won't change under us.
2013-02-24 11:42:34 -08:00
px4dev
8c7e2546ed
Simplify the PX4IO main loop to cut down on memory consumption.
2013-02-24 00:09:37 -08:00
Lorenz Meier
a704acc2a2
Out of memory warning, flash and RAM optimizations
2013-02-23 12:02:00 +01:00
Lorenz Meier
4595cc65b8
Reworked manual override flag, reworked arming slightly. Pending testing
2013-02-13 08:38:31 +01:00
Andrew Tridgell
c0a46c4b93
px4io: fixed logical vs bitwise typo
2013-01-26 16:20:34 -08:00
Andrew Tridgell
5ee52138c4
px4io: ensure RC_OK status flag is set on good input
2013-01-26 16:20:02 -08:00
px4dev
f854e2f791
Fixes from/inspired by Tridge; enable all mapped R/C inputs, fix various logic errors, be more selective about clearing the RC input type flags for debugging purposes.
2013-01-26 00:02:45 -08:00
px4dev
2686344d58
Adjust the default deadzone for RC inputs per feedback.
2013-01-15 00:40:15 -08:00
px4dev
4e38615595
Major workover of the PX4IO firmware for I2C operation.
2013-01-13 19:05:01 -08:00
Lorenz Meier
cf563eda86
px4io code style
2013-01-11 07:44:17 +01:00
Lorenz Meier
f788d452ea
Merged
2013-01-06 11:47:30 +01:00
Simon Wilks
7842caf3b2
Moved the channel mappings and attributes to the config section
2013-01-06 04:21:04 +01:00
Lorenz Meier
83039e76d3
Reverted unwanted S.Bus changes
2013-01-06 01:32:39 +01:00
Lorenz Meier
142556b442
merged
2012-12-30 10:03:05 +01:00
px4dev
d81edb09cf
whitespace/formatting
2012-12-29 16:01:24 -08:00
Lorenz Meier
e56911bf2d
Fixed signal loss detection on S.Bus parsing, stripped PX4IO code parts from S.Bus parser to allow FMU / IO parser code sharing. Added S.Bus channels 17 and 18 if channel data struct has enough space. Tested with receiver and PX4FMU.
2012-12-16 15:31:44 +01:00
Lorenz Meier
f81d00594c
Made PX4IO FMU timeout based on IOs HRT, updating mixers now on every FMU update and not at fixed rate, this is WIP and currently does not support mixing with RC-only
2012-12-15 23:28:03 +01:00
Lorenz Meier
1fc0a6546e
Merged IO feature branch
2012-12-13 11:12:34 +01:00
Lorenz Meier
03076a72ca
Added required additional fields: If system is ok to launch (required for LED indicator), if system is ok to override fully by RC (required for multirotors which should not support this), desired PWM output rate in Hz (again required for some multirotors).
2012-12-13 10:23:02 +01:00
Lorenz Meier
1ebb3b4ada
Merged DSM fixes
2012-12-05 19:55:33 +01:00
px4dev
7c3b28d503
Lock out the PPM decoder if the DSM or S.bus decoders have seen a frame recently.
2012-12-04 09:52:16 -08:00
px4dev
1485a4ec1a
Fix breakage to the DSM parser introduced with the input prioritisation logic. Back out to a "any input wins" strategy; connecting multiple receivers to I/O at the same time is currently not supported (read: strange things will happen).
2012-12-03 23:20:28 -08:00
Lorenz Meier
126e6ac207
Enabled manual override switch, work in progress. Added initial demix testing code to support delta mixing on the remote for convenient manual override
2012-12-01 16:30:21 +01:00
px4dev
9fa794a8fa
Rework the PX4IO software architecture:
...
- Use a separate thread for handing R/C inputs and outputs.
- Remove all PX4IO R/C receiver configuration; it's all automatic now.
- Rework the main loop, dedicate it to PX4FMU communications after startup.
- Fix several issues in the px4io driver that would cause a crash if PX4IO was not responding.
2012-11-30 00:02:47 -08:00