Lorenz Meier
d1909ca94b
Merge pull request #878 from PX4/sbus_out
...
S.BUS output
2014-05-05 08:04:28 -07:00
Andrew Tridgell
ac52111085
px4io: support PX4IO_P_SETUP_FORCE_SAFETY_OFF
...
this allows the FMU to force the safety off on the IO board. Useful in
two cases:
1) vehicles where the safety switch is impractical or not useful
(eg. HAB planes or internal combustion motors)
2) doing ESC calibration on multi-copters
2014-04-28 11:45:20 +02:00
Lorenz Meier
024de1fec4
Remove unwanted colon
2014-04-05 17:04:36 +02:00
Lorenz Meier
1eb0b19409
Merged minimal S.BUS failsafe changes
2014-04-05 11:14:19 +02:00
Lorenz Meier
3e4841b6fe
px4io: Guard against the RC failsafe value of channel 5 causing a manual override action if set to manual in failsafe
2014-04-05 11:10:41 +02:00
Lorenz Meier
09d1064327
px4io: Remove unused variable
2014-04-05 11:06:07 +02:00
Holger Steinhaus
745ef4f485
px4io: do not include failsafe condition into rc_lost flag
2014-04-05 11:05:17 +02:00
Lorenz Meier
9a0b2b7610
Make throttle failsafe depend on the failsafe threshold parameter. Make the parameter optional (no harm if not found).
2014-04-05 11:02:22 +02:00
Lorenz Meier
9123ebce8c
px4io: Allow RC failsafe detection as valid feature
2014-04-05 10:45:02 +02:00
Lorenz Meier
c6d98a32f8
Proper failsafe handling onboard, including throttle failsafe condition if enabled
2014-04-05 10:27:43 +02:00
Holger Steinhaus
409fa565f4
px4io: do not include failsafe condition into rc_lost flag
2014-03-25 17:12:27 +01:00
Anton Babushkin
af548db7cc
px4iofirmware: define 4 actuator control groups
2014-03-05 00:01:27 +04:00
Lorenz Meier
983cff56b3
Added int cast to handle arithmetic correctly
2014-02-21 12:50:29 +01:00
Lorenz Meier
06b69b70a5
Scaling Spektrum inputs into normalized value same as the servo outputs do
2014-02-21 12:27:04 +01:00
Lorenz Meier
b58fa2dffc
Change bit mask to allow for 10 channels.
2014-02-21 08:34:36 +01:00
Lorenz Meier
cfb4f76bad
Merge pull request #684 from PX4/dsm_fix
...
Dsm support for DX10t
2014-02-21 08:12:04 +01:00
Lorenz Meier
9828d5ede4
Fix copyright, do not return junk channel #13 that Spektrum gives us.
2014-02-21 08:07:49 +01:00
Lorenz Meier
2d97dff35c
Added support for DX10t, which apparently outputs 13 channels
2014-02-21 08:07:42 +01:00
Anton Babushkin
4cfaf928e1
px4io: bug in failsafe fixed
2014-02-18 16:11:46 +04:00
Lorenz Meier
91c55503a8
Ensure only either S.BUS1 or S.BUS2 can be active at a time
2014-02-13 08:25:49 +01:00
Lorenz Meier
6a1f91e625
Make SBUS output exclusive
2014-02-13 08:22:05 +01:00
px4dev
dd432e6603
Remove the s.bus test loop... makes it very hard to update the firmware.
2014-02-12 22:11:09 -08:00
px4dev
ca2ad0051d
Be more enthusiastic with the sbus enable pin. Still no love.
2014-02-12 00:48:53 -08:00
Lorenz Meier
3bcf34098a
Fix quotation marks
2014-02-12 08:50:44 +01:00
Lorenz Meier
85ec7fb40a
test loop
2014-02-12 08:47:01 +01:00
Lorenz Meier
500ac69ee4
Build test code for S.BUS output, send test characters once S.BUS1 or S.BUS2 is enabled
2014-02-12 08:13:53 +01:00
Lorenz Meier
ff753b9e24
Merged master into lockdown_disable
2014-01-30 10:00:01 +01:00
Lorenz Meier
0393b2aa12
Build fix for IO control input parsing.
2014-01-26 16:01:39 +01:00
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