Lorenz Meier
00a3270dc6
Differentiate between failsafe having kicked in (which stops the normal output mixing based on RC outputs and prevents unwanted control commands due to failsafe) and a true loss of the receiver, where we stop outputting RC channel readings downstream on FMU.
2014-01-26 15:52:51 +01:00
Lorenz Meier
d1c934233f
Fix S.BUS decoder to return value even if its just failsafe
2014-01-26 15:30:16 +01:00
Lorenz Meier
cc68d11353
Add flag to indicate proper RC mapping
2014-01-26 15:26:19 +01:00
Lorenz Meier
ac32116f00
Fix docs header
2014-01-26 15:17:01 +01:00
Lorenz Meier
16eb68f2e9
Allow the setup flags to control the S.BUS / RSSI port instead of doing some wild, likely incorrect, guesses.
2014-01-26 14:13:57 +01:00
Lorenz Meier
a737a2a406
RSSI and SBUS out config now handled as setup feature flags.
2014-01-26 13:22:26 +01:00
Lorenz Meier
57d38bc8ce
Clean up RC related metadata, put everything into the RC data page. This ensures atomic reads, makes the reads more efficient and allows for some headroom for more RC flags. The IO driver side is updated as well, however, these flags are not published yet.
2014-01-26 00:17:26 +01:00
Lorenz Meier
b06d199129
Fixed year in controls.c comment.
2014-01-25 23:10:48 +01:00
Lorenz Meier
aff11d6d86
IO firmware: Use right base reg value - since the wrong one had the same value this hasn’t been an issue, but it would have become one once one of them changed.
2014-01-25 23:06:53 +01:00
Lorenz Meier
e07d91613b
Remove unused field
2014-01-24 18:24:54 +01:00
Lorenz Meier
b26c23c5f4
Merge branch 'cleanup'
2014-01-24 18:14:15 +01:00
Lorenz Meier
880342b9c1
Missing header for mixer status change.
2014-01-24 17:37:34 +01:00
Lorenz Meier
bd15653b17
Use the proper status registers for locking out from mixer updates and return the value of the mixer change.
2014-01-24 17:37:01 +01:00
Lorenz Meier
15f8e5acf1
Make in the comments explicit that we don’t do anything here under normal circumstances to make it less tempting to comment out the helpful debug tools in this section.
2014-01-24 17:35:29 +01:00
Lorenz Meier
c5cb3cfd21
Make the IO mixer upload report not only a global success / fail flag, but on transfer basis. Also use a crude lock to avoid updating the mixer while it runs (we have no proper mutexes on IO, and this is a pure read/write locking case with two locks, which should make the execution even with this crude approach thread-safe).
2014-01-24 17:34:42 +01:00
Lorenz Meier
8bdbce5fe2
We do not know all secret S.BUS2 codes yet
2014-01-23 22:27:04 +01:00
Lorenz Meier
0c116e8de5
Implemented S.Bus 2 decoding support
2014-01-23 22:10:03 +01:00
Lorenz Meier
9e72e72644
Make SBUS switching conditional to be friendly to IO v1
2014-01-23 09:29:59 +01:00
Lorenz Meier
c74660fec5
Merge branch 'rssi' of github.com:PX4/Firmware into rssi
2014-01-23 09:18:01 +01:00
Lorenz Meier
2aa76f1a3c
Fixes to memory check handling, split out switch handling to allow separate initialization
2014-01-23 09:17:46 +01:00
px4dev
0994412cca
Fix the initialisation and operation of the PX4IO ADC - now RSSI and VSERVO voltages should be read correctly.
2014-01-22 23:52:06 -08:00
Lorenz Meier
c3e4e4ee68
Build fix, replaced usleep with up_udelay in memory lockdown state
2014-01-23 08:26:53 +01:00
Lorenz Meier
8c8e9a4ff9
Enable the PX4IO self check and debug interfaces. No reason to disable them, since they are runtime-configured (and needed, for the case of memory)
2014-01-23 08:25:37 +01:00
Lorenz Meier
5bc61c3c57
S.BUS output disable cleanup
2014-01-22 08:30:48 +01:00
Lorenz Meier
d174998b45
RSSI and concurrent S.Bus output handling
2014-01-18 12:00:17 +01:00
Andrew Tridgell
94b539dfdd
px4io: enable power on Spektrum connector on init
2014-01-07 09:36:33 +01:00
Andrew Tridgell
1a13e66aab
px4iofirmware: make forceupdate more reliable
...
this schedules a reboot rather than rebooting immediately, which means
the FMU gets an ACK for its reboot operation, preventing it from
timing out waiting for the ACK. That makes the timing of the reboot
more consistent, which makes it more reliable for forceupdate
2014-01-07 09:30:56 +01:00
Lorenz Meier
965a7a4f03
Allow to disable a channel
2013-12-27 21:33:19 +01:00
Lorenz Meier
a9ea39054d
Working around creating an error condition with more than 8 raw RC channels
2013-12-27 21:19:04 +01:00
Lorenz Meier
cddbb0d23f
Merged master
2013-12-27 21:12:51 +01:00
Lorenz Meier
8d2950561d
Changed RSSI range to 0..255
2013-12-25 15:15:15 +01:00
Lorenz Meier
edffade8ce
Added PPM frame length feedback in IO comms and status command - allows to warn users about badly formatted PPM frames
2013-12-25 15:11:48 +01:00
Lorenz Meier
f8134c9c67
Enable 18 channels on IO
2013-12-22 21:12:31 +01:00
Lorenz Meier
6c990d0a6e
Fix usage of wrong constant for RC input channels
2013-12-22 20:44:51 +01:00
Lorenz Meier
999051546a
Fixed compile error
2013-12-21 19:08:52 +01:00
Lorenz Meier
b84c9f962b
Merged master
2013-12-21 19:07:24 +01:00
Lorenz Meier
d6a6d59d2d
Further improved S.Bus scaling
2013-12-14 15:09:20 +01:00
Lorenz Meier
00dc339d2e
Improved S.Bus scaling based on scope measurements
2013-12-14 14:52:57 +01:00
Lorenz Meier
9883a346a0
First stab at implementing better RSSI based connection status estimation, still needs some work and testing
2013-12-13 18:01:55 +01:00
Holger Steinhaus L
a673fa3926
Non-destructive handling of failsafe signals, distinction between frame loss and signal loss.
...
This kind of handling might be moved upstream into the application, once alarms are propagated by the ORB system.
This change is compatible with RX failsafe settings, but does not rely on it (uses SBus flags instead).
2013-12-13 17:30:26 +01:00
Holger Steinhaus L
3a40ea8338
more precise range conversion for SBus input signals
2013-12-13 17:30:14 +01:00
Lorenz Meier
c311462f3c
Added actuator control removal
2013-12-13 16:52:35 +01:00
Andrew Tridgell
5b7d1af5d8
Merged crccheck command
2013-12-13 11:22:14 +01:00
Andrew Tridgell
6016fbe55d
Merged PX4IO crc checks and force update
2013-12-13 11:21:00 +01:00
Thomas Gubler
c033443208
px4iofirmware: improve check for rc controlled channels in manual mode
2013-12-11 16:58:11 +01:00
Thomas Gubler
b69097df38
px4io frimware: improve handling of manual mode when fmu is still healthy, use data from fmu for channels which are not controlled by rc
2013-12-11 16:58:03 +01:00
Thomas Gubler
5e273bf225
px4iofirmware: in manual mode: ignore control indices which are not controlled by the rmeote control
2013-12-08 21:35:16 +01:00
Lorenz Meier
0ba507b640
Added support for a total of four control groups to the IO driver and IO firmware. This allows to run auxiliary payload. Cleaned up defines for RC input channel counts, this needs another sweep to then finally allow up to 16 mapped channels and up to 20-24 RAW RC channels
2013-12-08 11:25:45 +01:00
Andrew Tridgell
d0507296c0
px4io: moved blue heartbeat LED to main loop
...
this allows us to tell if the main loop is running by looking for a
blinking blue LED
2013-11-30 20:18:27 +11:00
Anton Babushkin
e46d60ba6d
px4io driver: don’t use PX4IO_PAGE_ACTUATORS page for actuator_controls_effective
2013-11-15 11:32:05 +04:00