Commit Graph

13526 Commits

Author SHA1 Message Date
px4dev bcfb713fe9 Enable handling for short-packet reception on IO using the line-idle interrupt from the UART. 2013-07-05 20:35:55 -07:00
px4dev f9a85ac7e6 Remove the TX completion callback on the IO side.
Report CRC, read and protocol errors.
2013-07-05 19:16:25 -07:00
px4dev 10e673aa4b Send error response if register write fails. 2013-07-05 19:02:42 -07:00
px4dev 46a4a44321 Be more consistent with the packet format definition.
Free perf counters in ~PX4IO_serial
2013-07-05 18:36:00 -07: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
px4dev 50cae347b4 Check packet CRCs and count errors; don't reject packets yet. 2013-07-05 17:13:54 -07:00
px4dev 5a8f874166 Add an 8-bit CRC to each transmitted packet. 2013-07-05 16:56:47 -07:00
px4dev 313231566c Encode the packet type and result in the unused high bits of the word count. 2013-07-05 16:41:27 -07:00
px4dev e55a37697d Always send and expect a reply for every message. 2013-07-05 16:34:44 -07:00
Lorenz Meier 5f2d35d715 Added gyro scaling as parameter 2013-07-05 11:44:10 +02:00
Lorenz Meier 7ca0698a6b Fixed HIL handling 2013-07-05 11:43:42 +02:00
Lorenz Meier 2cfe9ee1b4 Improved limits handling 2013-07-05 11:43:16 +02:00
px4dev 83213c66df Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets us back into sync. 2013-07-04 23:22:59 -07:00
px4dev 94b638d848 One more piece of paranoia when resetting DMA 2013-07-04 23:19:24 -07:00
px4dev 43210413a9 More test work on the px4io side of the serial interface. 2013-07-04 23:17:55 -07:00
px4dev c21237667b iov2 pin definition cleanup sweep 2013-07-04 23:16:13 -07:00
Lorenz Meier 05d6815401 Improved return statement of sensors app 2013-07-04 15:49:13 +02:00
Lorenz Meier cefebb9699 Small improvements in system lib 2013-07-04 15:48:01 +02:00
Lorenz Meier d72e9929aa Fixes to fixed wing control example, fixes to the way the control lib publishes estimates 2013-07-04 15:46:53 +02:00
Lorenz Meier b01673d1d8 Fixes to estimator and HIL startup script 2013-07-04 15:45:32 +02:00
Lorenz Meier f42b3ecd96 Substantial improvements to math lib 2013-07-04 15:43:38 +02:00
Lorenz Meier 3686431231 Removed leftover mavlink_receiver.c file 2013-07-04 15:41:42 +02:00
Lorenz Meier 9aee419324 Updated mavlink version, massive improvements in mission lib, fixes to HIL (state and sensor level) 2013-07-04 15:40:20 +02:00
Lorenz Meier 5691c64ff0 Update to uORB topics, added / improved position triplet, added radio status 2013-07-04 15:39:29 +02:00
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.
2013-07-03 00:08:12 -07:00
marco 209dc7100e mkclctrl 8/11Bit support, uOrb Topic added, ESC Topic to Sdlog2 added 2013-07-02 19:46:15 +02:00
Lorenz Meier e9290e7fc0 Merge branch 'master' of github.com:PX4/Firmware into origin_integration 2013-07-02 16:40:26 +02:00
sjwilks 697c0a1a1d Merge pull request #314 from DrTon/att_control_der_fix
Multirotor attitude controller updated
2013-07-02 01:19:14 -07:00
Anton Babushkin 843fb2d371 position_estimator_inav init bugs fixed 2013-07-01 09:29:06 +04:00
Anton Babushkin f6b0a27295 Merge branch 'master' into seatbelt_multirotor 2013-06-30 23:36:42 +04:00
sjwilks 4edb6ce76b Merge pull request #319 from PX4/kalman_nav
Kalman navigation fixes
2013-06-30 11:58:38 -07:00
Lorenz Meier d51b97fe2f Merge branch 'master' of github.com:PX4/Firmware into integration 2013-06-30 19:47:12 +02:00
Lorenz Meier aa04701c89 Added global position to logging 2013-06-30 19:15:02 +02:00
Lorenz Meier 7d59ee6839 Fixed yaw estimate, minor comment and code style improvements. Added option for upfront init, prepared process for removal (later) of sensors app and subscription to individual topics. Prototyping rework of params / subscriptions to resolve GCC 4.7 incompatibility of control lib (or rather the fact that we need to work around something which looks like a compiler bug) 2013-06-30 00:38:01 +02:00
Anton Babushkin aeb3637209 Merge branch 'arm_safe_fix' into seatbelt_multirotor 2013-06-29 21:01:20 +04:00
Anton Babushkin 2f1de6621b More strict conditions for arm/disarm 2013-06-29 20:49:54 +04:00
Anton Babushkin d3eb86d0ea Publish manual_sas_mode immediately, SAS modes switch order changed to more safe 2013-06-29 20:43:44 +04:00
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.
2013-06-28 23:39:35 -07:00
Anton Babushkin 7dfaed3ee7 multirotor_pos_control: new ground level -> altitude setpoint correction fixed 2013-06-28 23:35:48 +04:00
Anton Babushkin a29e3b5a94 Merge commit '91e1680c1bb45bceb1d1dd675782111713f76a8a' into seatbelt_multirotor 2013-06-28 19:40:19 +04:00
Anton Babushkin 8e732fc527 position_estimator_inav default parameters changed, some fixes 2013-06-28 12:58:12 +04:00
Anton Babushkin 7b73df6440 Merge branch 'att_control_der_fix' into seatbelt_multirotor 2013-06-28 11:11:26 +04:00
Anton Babushkin 1759f30e3a Sonar added to position_estimator_inav 2013-06-28 11:10:46 +04:00
Anton Babushkin 665a9b8865 Merge commit '8191130bbc8f2cbd53e69a7bcd1a4d4b1b2d68bb' into seatbelt_multirotor 2013-06-28 11:09:21 +04:00
Julian Oes 76346bfe19 Corrected merge mistake 2013-06-27 20:20:27 +02:00
Julian Oes f052442c2b Merge remote-tracking branch 'upstream/master' into new_state_machine
Conflicts:
	src/modules/sdlog2/sdlog2.c
	src/modules/sdlog2/sdlog2_messages.h
2013-06-27 09:23:11 +02:00
px4dev 90c458cb61 Checkpoint: interface abstraction for px4io driver 2013-06-25 23:08:34 -07:00
Anton Babushkin 85d35777e0 sdlog2: bugfix in FLOW message 2013-06-25 22:51:51 +04:00
Anton Babushkin fdc7247fcf sdlog2: FLOW message added, bug fixed in optical_flow topic 2013-06-25 21:04:08 +04:00
Julian Oes 0ecc9c4bf4 Shrinking the main commander file a bit 2013-06-25 16:30:35 +02:00