Lorenz Meier
cf563eda86
px4io code style
12 years ago
Lorenz Meier
65c8028629
Working on override channel mapping, allowed trim cal only with RC on
12 years ago
Lorenz Meier
0945a2cc2f
Fixed RC mapping transmission, tested. Fixed RC scaling in manual mode
12 years ago
Lorenz Meier
e2317edde8
Code style fix
12 years ago
Lorenz Meier
a9e87c791d
Fixed header for sbus input
12 years ago
Simon Wilks
7842caf3b2
Moved the channel mappings and attributes to the config section
12 years ago
Lorenz Meier
83039e76d3
Reverted unwanted S.Bus changes
12 years ago
Simon Wilks
0a89ab7075
Send rc channel ordering and channel attributes from FMU to IO
12 years ago
Simon Wilks
1b81724ef7
Manually remap the channel assignements for testing.
12 years ago
px4dev
d93fda20fd
Add ADC measurements and reporting to PX4IO, including calibration for the battery input.
12 years ago
px4dev
9be1f99935
Add trivial ADC support to PX4IO.
12 years ago
Julian Oes
8d1b1354e1
A wrong parameter name in commander was responsible for manual override always ok
12 years ago
Lorenz Meier
0cc723dbc3
Fixed connection loss / failsafe detection, added decoding of two switch channels if IO supports 18 RC channels. Loss is tested, switch channels are not.
12 years ago
px4dev
f2d4eb2887
Revert "Removed text reuse, causing crash with stack trace"
...
This reverts commit 668d1b3301
.
12 years ago
Lorenz Meier
668d1b3301
Removed text reuse, causing crash with stack trace
12 years ago
Lorenz Meier
234af06571
Fixed merge error
12 years ago
px4dev
fd016abd46
Implement the remaining pieces of mixer upload to PX4IO.
12 years ago
px4dev
c740e9c616
Add a receive error counter for debugging purposes.
12 years ago
px4dev
85375c2201
Rename the FMU->IO output controls to reflect the fact that they are controls, not servo values.
12 years ago
px4dev
d81edb09cf
whitespace/formatting
12 years ago
px4dev
0ae5997bd0
Fix some scaling errors in the PWM <-> mixer-internal conversions.
12 years ago
px4dev
6b9d5dac4d
Rough in the new mixer path for PX4IO.
12 years ago
px4dev
d5da457e29
Fix PX4IO to run C++ static ctors
12 years ago
Lorenz Meier
be85589e48
Fixed some typos
12 years ago
Julian Oes
d4edf2e85c
Override is now really disabled for multirotors, also I don't think the parameter got ever read by the commander but I might be wrong
12 years ago
px4dev
5b92c51777
Initial implementation of application access to the PX4IO relays.
12 years ago
Julian Oes
8053b4b9f7
Revert "I don't want a switch for failsafe for the copter"
...
This reverts commit 28b3ecd9c6
.
12 years ago
Julian Oes
28b3ecd9c6
I don't want a switch for failsafe for the copter
12 years ago
Lorenz Meier
fe6496a04d
Correctly do position lock led signalling on IO and position lock measurement on FMU, tested with HIL.
12 years ago
Lorenz Meier
b9606d0d6e
Reverted arming state machine back to its original state, operational again
12 years ago
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.
12 years ago
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
12 years ago
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).
12 years ago
Simon Wilks
03b51c69e0
Added more LED state logic and improve code.
...
The LED will now also indicate when the FMU is ARMED. Switched to using
a 16-bit value where each bit indicates what state the LED should be
in.
12 years ago
Simon Wilks
197e573885
Add an additional safety switch LED blink sequence when FMU and IO are armed
...
If both the FMU and the IO board are armed then the secure switch will
blink two times quickly then a pause followed by two quick blinks and
so on.
12 years ago
px4dev
fd771f67f2
Adjust the control mapping from DSM receivers to correspond to the standard PPM control mapping for channels 0-4.
12 years ago
px4dev
7c3b28d503
Lock out the PPM decoder if the DSM or S.bus decoders have seen a frame recently.
12 years ago
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).
12 years ago
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
12 years ago
Lorenz Meier
de88732e8e
Prevented unhealthy RC input from propagating through the system
12 years ago
px4dev
efd3b9dea6
Clean up the FMU communications init.
12 years ago
px4dev
7d9d307ab0
We don't need non-blocking I/O for this context anymore; it's OK for it to block.
12 years ago
px4dev
8c4e9de70a
Use the right constraint for the output mixer; we might end up wanting more virtual control channels.
12 years ago
px4dev
1e6e06595a
Avoid processing S.bus channels that cannot be communicated to FMU
12 years ago
Lorenz Meier
ef4a54666d
Harmonized PPM, S.BUS and DSM input (order: first preference S.Bus, then DSM, then PPM, first available and valid source is chosen), tested with FMU, valid channel inputs
12 years ago
px4dev
e0df7e6a76
save ~200 bytes of RAM by correctly positioning the S.bus decoder table in flash.
12 years ago
px4dev
c961dd8bab
Just for fun, add a (completely untested) S.bus decoder.
12 years ago
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.
12 years ago
px4dev
9c8101d4f1
Add some more information to comments.
12 years ago
px4dev
d0efd1a419
Fix the DSM (spektrum) protocol decoder, and add some format auto-detection to it.
12 years ago