Commit Graph

165 Commits

Author SHA1 Message Date
Lorenz Meier fabef6c889 Revert "Fixed warning"
This reverts commit 3639c7ae91.
2014-03-04 22:52:34 +01:00
Lorenz Meier 3639c7ae91 Fixed warning 2014-03-04 21:36:09 +01: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 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
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
Lorenz Meier 8ffb9e29c6 Teach IO firmware that arming and lockdown are two different things, clean up arming check 2014-01-16 10:56:15 +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