Lorenz Meier
f7090db708
Fix the direction of the override switch for the new state machine
12 years ago
Lorenz Meier
9424728af9
Fix a whole bunch of sanity checks across all mixers
12 years ago
Jean Cyr
72df378577
Finally get the #if right!!!
12 years ago
Jean Cyr
390d5b34de
Fix backwards ifdef in dsm.c
12 years ago
Jean Cyr
89d3e1db28
Implement Spektrum DSM pairing in V2
...
- Bind control for V2
- Relays and accessory power not supported on V2 hardware
12 years ago
Andrew Tridgell
e9e46f9c9d
px4io: added monitoring of vservo and vrssi
...
publish via servorail_status ORB topic
12 years ago
Lorenz Meier
c3b6cea77a
Hotfix for S.Bus systems with more than 8 channels
12 years ago
Lorenz Meier
465f161427
Hotfix: remove bogus commit
12 years ago
Julian Oes
589ae937ee
Allow mixer upload when PWM is on
12 years ago
Lorenz Meier
85eafa323a
Fix to RC param updates on IO
12 years ago
Lorenz Meier
5fbee23945
Added flag to disable RC evaluation onboard of IO (raw values still forwarded)
12 years ago
Lorenz Meier
6c45d9cb5c
Fixed in-air timout, bumped protocol version
12 years ago
Jean Cyr
bafc5ea8a1
Remoce C++ style Doxygen comments
...
Replace C++ style comments with C comments
12 years ago
Jean Cyr
ab80b0e273
Doxygenate and style dsm.c
...
One file a day... this'll take a while!
12 years ago
Julian Oes
3a21cacdbb
Fix bug where IO was in override mode for copter (workaround was to disconnect and reconnect Rx
12 years ago
Jean Cyr
36679fbb39
Some DSM satellites are fussier about bind pulse timing
...
These values work better
12 years ago
px4dev
9d6ec6b365
Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
...
Rename some directories that got left behind in the great board renaming.
12 years ago
Lorenz Meier
dd3033fa6f
Symbol cleanup for servo vs. battery voltage
12 years ago
Lorenz Meier
2f76c81147
More compile fixes
12 years ago
Jean Cyr
897b541b12
General cleanup of /dev/px4io and /dev/px4fmu
...
- Use distinct common symbols for px4io and px4fmu device files, and use
instead of hardcoded filenames
- Use common symbols defining px4io bits consistently between px4fmu and
px4io builds.
12 years ago
px4dev
e2458677c9
Tweak IO serial packet error handling slightly; on reception of a serial error send a line break back to FMU. This should cause FMU to stop sending immediately.
...
Flag these cases and discard the packet rather than processing it, rather than simply dropping the received packet and letting FMU time out.
12 years ago
px4dev
b4029dd824
Pull v2 pieces up to build with the merge
12 years ago
Jean Cyr
dab652faf6
Prevent RELAY1 control via IOCTL if DSM bind feature is enabled
12 years ago
px4dev
8fa226c909
Tweak protocol register assignments and add new registers to accommodate differences in IOv2.
12 years ago
px4dev
4d400aa7e7
Enable UART error handling on PX4IO.
12 years ago
px4dev
87a4f1507a
Move the common definitions for the PX4IO serial protocol into the shared header.
12 years ago
px4dev
19b2e1de85
Copy the correct number of bytes back for register read operations. Basic PX4IO comms are working now.
12 years ago
px4dev
3c8c596ac7
Enable handling for short-packet reception on FMU using the line-idle interrupt from the UART. Enable short packets at both ends.
12 years ago
px4dev
bcfb713fe9
Enable handling for short-packet reception on IO using the line-idle interrupt from the UART.
12 years ago
px4dev
f9a85ac7e6
Remove the TX completion callback on the IO side.
...
Report CRC, read and protocol errors.
12 years ago
px4dev
10e673aa4b
Send error response if register write fails.
12 years ago
px4dev
46a4a44321
Be more consistent with the packet format definition.
...
Free perf counters in ~PX4IO_serial
12 years ago
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.
12 years ago
px4dev
50cae347b4
Check packet CRCs and count errors; don't reject packets yet.
12 years ago
px4dev
5a8f874166
Add an 8-bit CRC to each transmitted packet.
12 years ago
px4dev
313231566c
Encode the packet type and result in the unused high bits of the word count.
12 years ago
px4dev
e55a37697d
Always send and expect a reply for every message.
12 years ago
px4dev
83213c66df
Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets us back into sync.
12 years ago
px4dev
94b638d848
One more piece of paranoia when resetting DMA
12 years ago
px4dev
43210413a9
More test work on the px4io side of the serial interface.
12 years ago
px4dev
c21237667b
iov2 pin definition cleanup sweep
12 years ago
px4dev
be6ad7af3b
Rework the FMU<->IO connection to use a simple fixed-size DMA packet; this should let us reduce overall latency and bump the bitrate up.
...
Will still require some tuning.
12 years ago
px4dev
d1562f926f
More implementation for the serial side on IO; fix a couple of bugs on the FMU side.
...
Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
12 years ago
px4dev
90c458cb61
Checkpoint: interface abstraction for px4io driver
12 years ago
Julian Oes
9b6c9358ed
First try for an ESC calibration tool
12 years ago
Julian Oes
23858a6726
Added functionality to enable PWM output for stupid ESCs even when safety is not off, arming button functionality remains as is
12 years ago
Julian Oes
f3ce61d740
Forgot to remove some debug stuff
12 years ago
Julian Oes
b5f4f1ee80
Adressed performance concern and fixed a copy paste bug
12 years ago
Julian Oes
cc452834c0
First try to prevent motors from stopping when armed
12 years ago
Lorenz Meier
c3a8f177b6
Software version check fixes
12 years ago