113 Commits

Author SHA1 Message Date
px4dev
3a8bbe837e Allow readback of the direct PWM outputs (this mirrors the PWM servo outputs) 2013-01-26 13:14:15 -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
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
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
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
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
7b367c3eb3 Beat the px4io driver into compilable shape. Just missing RC input configuration now. 2013-01-15 23:01:04 -08:00
px4dev
b4dcdae03d Add support for battery current scaling. Add feedback for mixer load operations. 2013-01-15 22:22:15 -08:00
px4dev
112f5ea969 Add support for raw PWM passthrough from FMU via IO. 2013-01-15 00:41:13 -08:00
px4dev
f3a587dfce Wire the I2C device code into the register handler. 2013-01-15 00:40:41 -08:00
px4dev
2686344d58 Adjust the default deadzone for RC inputs per feedback. 2013-01-15 00:40:15 -08:00
px4dev
5c60ed9a94 Fix up FMU input timeout handling.
Fix the FMU auto OK LED status.
Strip out unused fields from the system state structure.
2013-01-14 01:11:29 -08:00
px4dev
2311e03379 Start reworking the px4io driver to use the I2C interface instead. 2013-01-14 00:19:01 -08:00
px4dev
4e38615595 Major workover of the PX4IO firmware for I2C operation. 2013-01-13 19:05:01 -08:00
px4dev
8ebe21b27b Checkpoint - I2C protocol register decode 2013-01-13 19:05:01 -08:00
px4dev
b0fb86a693 Sketch out the protocol as it will be on top of I2C 2013-01-13 19:05:01 -08:00
px4dev
1cecba2a86 Turn off i2c slave debug output for real. 2013-01-13 19:05:01 -08:00
px4dev
5e35491a38 We can't have DMA on both I2C1 and USART2. Since we need it more for I2C, and since USART2 is going back to being ignored once I2C works, let's make the call.
Turn off the debug output on I2C for now.
2013-01-13 19:05:01 -08:00
px4dev
97136375e3 Turn off the I2C register dump at startup. 2013-01-13 19:05:00 -08:00
px4dev
4f285f7c80 Configure the DMA channels in circular mode so that we don't have to deal with the case where DMA stops but the master is still talking.
Use AF as well as STOPF to decide when transfer has ended. We don't seem to get STOPF when we are transmitting.
2013-01-13 19:05:00 -08:00
px4dev
3cea0959b7 Implement a simple byte loopback server on I2C for more testing. 2013-01-13 19:05:00 -08:00
px4dev
2fb820fabd I2C slave RX DMA works. 2013-01-13 19:05:00 -08:00
px4dev
0dab53ae26 Implement I2C slave DMA. Not working yet. 2013-01-13 19:05:00 -08:00
px4dev
7c2445f74d Don't waste time printing when we have errors - that causes the master to time out 2013-01-13 19:04:59 -08:00
px4dev
811790a14f Checkpoint I2C slave work on IO 2013-01-13 19:04:59 -08:00
Lorenz Meier
cf563eda86 px4io code style 2013-01-11 07:44:17 +01:00
Lorenz Meier
65c8028629 Working on override channel mapping, allowed trim cal only with RC on 2013-01-11 07:35:40 +01:00
Lorenz Meier
0945a2cc2f Fixed RC mapping transmission, tested. Fixed RC scaling in manual mode 2013-01-06 14:43:37 +01:00
Lorenz Meier
f788d452ea Merged 2013-01-06 11:47:30 +01:00
Lorenz Meier
d3fd3d8219 Merged, compiling 2013-01-06 11:25:17 +01:00
Lorenz Meier
e2317edde8 Code style fix 2013-01-06 10:45:19 +01:00
Lorenz Meier
a9e87c791d Fixed header for sbus input 2013-01-06 10:13:53 +01:00
Lorenz Meier
3c85f8267f merged relay changes from master 2013-01-06 09:51:38 +01:00
px4dev
9df2aaf312 Merge branch 'master' into #111-px4io-integrated-mixing
Fix a botched merge for #106 at the same time.
2013-01-06 00:40:17 -08:00
px4dev
b3e16b4861 Merge pull request #123 from PX4/#106-px4io-relays
Initial implementation of application access to the PX4IO relays.
2013-01-06 00:32:04 -08:00
Simon Wilks
7842caf3b2 Moved the channel mappings and attributes to the config section 2013-01-06 04:21:04 +01:00
Lorenz Meier
83039e76d3 Reverted unwanted S.Bus changes 2013-01-06 01:32:39 +01:00
Simon Wilks
0a89ab7075 Send rc channel ordering and channel attributes from FMU to IO 2013-01-05 22:13:12 +01:00
Simon Wilks
1b81724ef7 Manually remap the channel assignements for testing. 2013-01-05 15:46:26 +01:00
px4dev
d93fda20fd Add ADC measurements and reporting to PX4IO, including calibration for the battery input. 2012-12-31 21:06:26 -08:00
px4dev
9be1f99935 Add trivial ADC support to PX4IO. 2012-12-31 19:41:18 -08:00
Julian Oes
8d1b1354e1 A wrong parameter name in commander was responsible for manual override always ok 2012-12-31 12:31:31 -08:00
Lorenz Meier
1b82dbb58d Merge branch '#111-px4io-integrated-mixing' of github.com:PX4/Firmware into fixedwing_io_mixing 2012-12-31 00:34:12 +01:00
px4dev
f2d4eb2887 Revert "Removed text reuse, causing crash with stack trace"
This reverts commit 668d1b330114fefc0ae7a6c476074f2c263c1476.
2012-12-30 15:08:25 -08:00
Lorenz Meier
36d556256f Merge branch '#111-px4io-integrated-mixing' into fixedwing_io_mixing 2012-12-30 14:03:33 +01:00
Lorenz Meier
668d1b3301 Removed text reuse, causing crash with stack trace 2012-12-30 13:58:30 +01:00
Lorenz Meier
234af06571 Fixed merge error 2012-12-30 12:05:38 +01:00
Lorenz Meier
abe1b9759a Merged IO mixing branch 2012-12-30 10:49:27 +01:00