1450 Commits

Author SHA1 Message Date
px4dev
666d3a401b Rename ::start to ::start_cycle to avoid confusion with the other start function.
Only enable I2C retries on operations that have no side-effects.
2013-01-26 18:55:26 -08:00
px4dev
621063ac08 Increase the number of I2C retries. 2013-01-26 17:10:04 -08:00
px4dev
33c12d13ad Defer I2C bus resets for the first couple of retries to avoid transient slave errors causing massive retry spam. 2013-01-26 17:07:58 -08:00
px4dev
7864176b5a A couple of logic fixes from Tridge. 2013-01-26 16:37:35 -08:00
Andrew Tridgell
c0a46c4b93 px4io: fixed logical vs bitwise typo 2013-01-26 16:20:34 -08:00
Andrew Tridgell
5ee52138c4 px4io: ensure RC_OK status flag is set on good input 2013-01-26 16:20:02 -08:00
px4dev
52ff9b7d43 Use multi-part transactions rather than separate transfers to avoid racing between the ioctl and thread-side interfaces. 2013-01-26 16:16:19 -08:00
px4dev
fd28217e59 Implement the retry counter for message-vector based transfers. 2013-01-26 16:15:23 -08:00
px4dev
6bd662cfb2 In the case of a repeated start, we won't get a STOPF/AF status, but we still need to complete the old transaction before handling ADDR. 2013-01-26 16:11:31 -08:00
px4dev
e0f83af96f Reset the collection state machine on all I2C errors, increase the retry count. 2013-01-26 15:13:30 -08:00
px4dev
2a18d6466c Add a bus saturation test for px4io. 2013-01-26 14:36:31 -08:00
px4dev
6ba4cd04fe Handle the completion of an in-progress transaction (STOPF/AF bits) before accepting the start of a new transaction (ADDR). 2013-01-26 14:26:02 -08:00
px4dev
11796e27f2 Simplify and tidy the handling of page buffer selection on the readout path. 2013-01-26 14:25:22 -08:00
px4dev
4ab490bd50 Only update the servo output values when we are armed. 2013-01-26 13:16:24 -08:00
px4dev
4ea8a64b39 Correct the length calculation for register write transfers so that we send all of the requested registers. 2013-01-26 13:15:57 -08:00
px4dev
72fcc8aad3 Tidy up the write path. 2013-01-26 13:15:27 -08:00
px4dev
899fbcc7cf Fix cut and paste so that we send direct PWM and read back servo values from the right pages. 2013-01-26 13:14:52 -08:00
px4dev
3a8bbe837e Allow readback of the direct PWM outputs (this mirrors the PWM servo outputs) 2013-01-26 13:14:15 -08:00
px4dev
984e68d76e Add an ioctl for fetching the number of PWM outputs 2013-01-26 12:27:42 -08:00
px4dev
b20c050402 Fix two protocol-related typos; get the right status flag name for raw PWM; read back the correct page for PWM output. 2013-01-26 12:27:03 -08:00
px4dev
f854e2f791 Fixes from/inspired by Tridge; enable all mapped R/C inputs, fix various logic errors, be more selective about clearing the RC input type flags for debugging purposes. 2013-01-26 00:02:45 -08:00
px4dev
5fe376c7b9 Correctness fixes from Tridge.; increased the minimum poll rate to 50Hz, don't set the input RC timestamp unless we get data. 2013-01-26 00:01:25 -08:00
px4dev
b46d05835b Implement settable failsafe values for PWM outputs.
By default in failsafe mode, PWM output pulses are not generated.
2013-01-25 22:58:33 -08:00
px4dev
900b0d58ef Less debug output. 2013-01-25 21:59:31 -08:00
px4dev
6c75c5909e Move the DMA start to immediately after setting it up; less latency at interrupt time, and no chance of getting start/stop calls out of sync. 2013-01-25 21:58:55 -08:00
px4dev
818e898a7e Fix the handling of max transfer size to leave room for the page/offset bytes. 2013-01-25 21:54:04 -08:00
px4dev
1b30cd2f93 Dump a couple of unused member variables. 2013-01-25 21:40:18 -08:00
Andrew Tridgell
8972843b14 px4io: fixed mixer load 2013-01-25 21:37:48 -08:00
Andrew Tridgell
f8bea6d07b px4io: fixed cpp error 2013-01-25 21:36:19 -08:00
Andrew Tridgell
57d028fddd px4io: fixed array reference bug 2013-01-25 21:35:58 -08:00
px4dev
82f72b96de Move DMA start for tx/rx into the gap where SCL is still stretched so that there is no risk of receiving the first byte before DMA starts. 2013-01-25 21:35:32 -08:00
px4dev
24f6c6b121 Merge branch 'master' into px4io-i2c 2013-01-25 19:29:29 -08:00
px4dev
35febbe844 Merge Nuttx r5554 2013-01-23 23:56:24 -08:00
px4dev
942cea157d Merge pull request #182 from NosDE/master
BlnkM: Timing changed and amber color for manual mode added
2013-01-23 23:15:19 -08:00
px4dev
0bc836ae1d Implement fetching raw RC input values via the ioctl interface. 2013-01-23 22:19:33 -08:00
px4dev
dce2afde0f Rework the way that we handle the address phase for reads. Drop the _connected test as we talk to IO before starting the thread. 2013-01-23 20:18:18 -08:00
px4dev
dc88dd0abb Merge branch 'master' into px4io-i2c 2013-01-23 18:58:19 -08:00
px4dev
d8a013f872 Tinkering. 2013-01-23 18:57:16 -08:00
px4dev
b34311915a Safeguard against back-to-back transactions while setting up to handle a register read request. 2013-01-23 18:56:58 -08:00
px4dev
3244bb83ea Better sanity checking and error handling. 2013-01-23 18:56:03 -08:00
px4dev
1ce1d4460b Merge pull request #183 from PX4/nuttx-merge-5527
Nuttx merge 5527
2013-01-23 18:46:12 -08:00
Andrew Tridgell
6e751d26e8 perf: added 'perf reset' command
resets all perf counters
2013-01-24 10:26:02 +11:00
Andrew Tridgell
f4da4bb8ca perf_counter: added perf_reset() and perf_reset_all() calls
useful for watching counters after system reaches stable flight
2013-01-24 10:26:02 +11:00
patacongo
63f8c0a954 Add option to used keyboard CODEC in apps/examples/keypadtest
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5554 42af7a65-404d-4744-a932-0658087f49c3
2013-01-23 23:11:13 +00:00
Marco Bauer
efd4250e84 timing changed and amber for manual added 2013-01-23 15:38:38 +01:00
Marco Bauer
deb5fe5187 timing changed and amber for manual added 2013-01-23 15:29:24 +01:00
px4dev
b66b234acd Merge branch 'master' into px4io-i2c 2013-01-22 19:56:14 -08:00
Julian Oes
f14c90c222 Some timeout needed to be raised for now to make ubx with baudrate 9600 working 2013-01-21 17:42:08 -08:00
patacongo
70cab4d797 Centralize TCP loss-of-connection bit twiddling
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5542 42af7a65-404d-4744-a932-0658087f49c3
2013-01-20 17:21:42 +00:00
px4dev
48e497e406 Fix a leftover from the earlier merges; building should work now. 2013-01-19 18:05:53 -08:00