Julian Oes
b5b460e7ca
IO board now disarms when FMU reboots when manual override is not an option
12 years ago
Thomas Gubler
4b26d7aef4
adding missing include
12 years ago
Lorenz Meier
cc628fbc27
Add missing mixer ok check in override mode, clear FMU lost alarm when setting FMU_OK flag, print AP RX timeout in production mode as well
12 years ago
Lorenz Meier
ebac51cad8
Working on restart resilience, hunting down multi-load mixer issue (still present)
12 years ago
Simon Wilks
ae98836db8
Correct RC config sanity checking and report back when RC config errors occur.
12 years ago
px4dev
3d9901dfaf
If we have seen control input from FMU, update the FMU_OK status flag.
12 years ago
px4dev
f245d6b1a7
Use hrt_elapsed_time() in cases where we can't be sure the timestamp won't change under us.
12 years ago
Lorenz Meier
a704acc2a2
Out of memory warning, flash and RAM optimizations
12 years ago
Lorenz Meier
be40845177
Switched to debug statement which is more efficient regarding stack usage, only printing at debug level 2 or higher.
12 years ago
Lorenz Meier
d4ca6a29a1
Ensured that the mixer output obeys the FMU and IO armed state
12 years ago
px4dev
5f52d3dc7f
lib_lowprintf -> lowsyslog
12 years ago
px4dev
7864176b5a
A couple of logic fixes from Tridge.
12 years ago
px4dev
4ab490bd50
Only update the servo output values when we are armed.
12 years ago
px4dev
b46d05835b
Implement settable failsafe values for PWM outputs.
...
By default in failsafe mode, PWM output pulses are not generated.
12 years ago
px4dev
15c85ba2cb
Strip some debugging
12 years ago
px4dev
7b367c3eb3
Beat the px4io driver into compilable shape. Just missing RC input configuration now.
12 years ago
px4dev
b4dcdae03d
Add support for battery current scaling. Add feedback for mixer load operations.
12 years ago
px4dev
112f5ea969
Add support for raw PWM passthrough from FMU via IO.
12 years ago
px4dev
5c60ed9a94
Fix up FMU input timeout handling.
...
Fix the FMU auto OK LED status.
Strip out unused fields from the system state structure.
12 years ago
px4dev
4e38615595
Major workover of the PX4IO firmware for I2C operation.
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
Simon Wilks
7842caf3b2
Moved the channel mappings and attributes to the config section
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
Julian Oes
8d1b1354e1
A wrong parameter name in commander was responsible for manual override always ok
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
px4dev
fd016abd46
Implement the remaining pieces of mixer upload to PX4IO.
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
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
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
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
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
px4dev
8c4e9de70a
Use the right constraint for the output mixer; we might end up wanting more virtual control channels.
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
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
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