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
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
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
px4dev
3321ca0888
Don't print the status line so much; we seem to drop a lot of receive characters this way.
12 years ago
px4dev
03a82e0a03
Fix includes for debug output.
12 years ago
Julian Oes
e9acc18df4
Lowered arm button prelling
12 years ago
Julian Oes
a8dfcaace2
Several fixes, hex flies, failsafe not really tested yet
12 years ago
Julian Oes
52143d6a68
Reverting commenting, that happened by accident
12 years ago
Julian Oes
2b5f551838
Revert "Revert "Another take on Spektrum/DSM frame decoding, based on more careful examination of the relevant docs.""
...
This reverts commit 38b20f2a1a
.
12 years ago
Julian Oes
38b20f2a1a
Revert "Another take on Spektrum/DSM frame decoding, based on more careful examination of the relevant docs."
...
This reverts commit ff3a014971
.
12 years ago
px4dev
ff3a014971
Another take on Spektrum/DSM frame decoding, based on more careful examination of the relevant docs.
12 years ago
Julian Oes
74f7600602
Again some hacking to make arming/disarming work for now
12 years ago
px4dev
39659e57f8
Add prototypical support for Spektrum satellite remotes to PX4IO.
12 years ago
px4dev
87fd9fcc06
Fix red/blue LED assignment.
12 years ago
px4dev
7fbad5adea
Fix PWM channel zero output; pin configuration was being overwritten by USART2 setup.
12 years ago
px4dev
487597b385
Checkpoint; messages from FMU now make it to IO intact; fix HRT init timing, process more bytes from the serial port, add some simple packet counting.
12 years ago
px4dev
ccc7b13185
There are four relay channels (two are power switches)
12 years ago
px4dev
ad7db28929
Let's use poll. It's more friendlier.
12 years ago
px4dev
ea539031da
Cleanup and refactor of the PX4IO firmware and board support. Builds, not tested yet.
12 years ago
px4dev
c3fe915b44
Checkpoint - moving things out of the NuttX configs/*/src directories
12 years ago
px4dev
bfbd17a2fa
Make it possible to run fmu and px4io simultaneously with full control over both sets of possible PWM outputs. First started wins.
12 years ago
px4dev
8477754411
Share the PX4IO protocol header, such as it is, between the two apps.
...
Stop using systemlib in the PX4IO firmware; it has expectations that can't reasonably be met.
13 years ago
Lorenz Meier
139cd09176
Faster sensor bus resets on timeouts, massively reworked fixed wing app, tested
13 years ago
px4dev
8a365179ea
Fresh import of the PX4 firmware sources.
13 years ago