Commit Graph
23 Commits
Author SHA1 Message Date
Lorenz Meier 948ff80b80 IO firmware: Fix code style 2015-10-19 13:46:32 +02:00
cctsao1008 e9d5978165 Adjust the duration of the BIND pulse
Some DSMX Remote Receiver can't enter BIND mode with the duration about 25us but 120us.
2015-06-30 00:21:47 +08:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Lorenz Meier c2687a7774 ST24 integration in IO firmware 2014-10-07 08:05:45 +02: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 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
Andrew Tridgell 94b539dfdd px4io: enable power on Spektrum connector on init 2014-01-07 09:36:33 +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
Jean Cyr f1c399a60b Add support for 8 channel DSMX sattelite pairing 2013-10-12 01:14:03 -04:00
Jean Cyr 72df378577 Finally get the #if right!!! 2013-09-18 20:24:33 -04:00
Jean Cyr 390d5b34de Fix backwards ifdef in dsm.c 2013-09-18 20:14:53 -04:00
Jean Cyr 89d3e1db28 Implement Spektrum DSM pairing in V2
- Bind control for V2
- Relays and accessory power not supported on V2 hardware
2013-09-18 20:04:22 -04:00
Lorenz Meier 061be7f7fe Merged master 2013-08-17 20:30:52 +02:00
Jean Cyr bafc5ea8a1 Remoce C++ style Doxygen comments
Replace C++ style comments with C comments
2013-08-16 18:35:52 -04:00
Lorenz Meier 52d15ac7b1 Merged public master 2013-08-16 16:22:38 +02:00
Jean Cyr ab80b0e273 Doxygenate and style dsm.c
One file a day... this'll take a while!
2013-08-15 19:51:36 -04:00
Jean Cyr 36679fbb39 Some DSM satellites are fussier about bind pulse timing
These values work better
2013-08-10 11:22:08 -04:00
Lorenz Meier 2f76c81147 More compile fixes 2013-07-16 09:08:05 +02:00
Jean Cyr dab652faf6 Prevent RELAY1 control via IOCTL if DSM bind feature is enabled 2013-07-07 19:04:30 -04:00
Jean Cyr 3f9f2018e2 Support binding DSM2 and DSMX satellite receivers
The px4io bind command allows you to put a DSM satellite receiver into
bind mode. Since this feature requires that
the dsm VCC line (red wire) be cut and routed through relay one, it is
not enabled by default in order not to
affect those not using a DSM satellite receiver or wising to use relay
one for other purposes.

NOTE: Binding DSM2 satellites in 11-bit mode is not supported due to
potential bug in some DSM2 receiver streams
when in 11-bit mode. Furthermore the px4io software folds 11 bit data
down to 10 bits so there is no resolution
advantage to to 11-bit mode.

To enable the feature the RC_RL1_DSM_VCC parameter must be set to a non
zero value from the console, or using
QGroundControl:

param set RC_RL1_DSM_VCC 1

From the console you can initiate DSM bind mode with:

uorb start
param set RC_RL1_DSM_VCC 1
px4io start
px4io bind dsm2

For binding a DSMX satellite to a DSMX transmitter you would instead
use:

px4io bind dsmx

Your receiver module should start a rapid flash and you can follow the
normal binding sequence of your
transmitter.

Note: The value of parameter RC_RL1_DSM_VCC defaults to 0, so none of
this will have any effect on an unmodified
DSM receiver connection. For this feature to work, the power wire (red)
must be cut and each side connected to a
terminal on relay1 of the px4io board.

This has been tested using Spektrum as well as Hobby King 'Orange' DSM
satellite receivers.

Both px4fmu and px4io images are updated.
2013-07-05 20:51:29 -04:00
Lorenz Meier f57439b90e Moved all drivers to new world, PX4IO completely in new world 2013-04-28 01:30:14 +02:00