198 Commits

Author SHA1 Message Date
Lorenz Meier
c5b13b7dbc IO driver: stricter init 2014-07-16 09:05:29 +02:00
Lorenz Meier
cdfbe9bcc4 px4io: Do not forward excessively low battery voltages 2014-07-12 23:30:34 +02:00
Lorenz Meier
0fe8ed509a Merge branch 'master' into power_enforce 2014-06-26 17:28:01 +02:00
Lorenz Meier
d58a992e91 Hotfix: Improve PX4IO monitor command 2014-06-23 13:44:36 +02:00
Lorenz Meier
8ea5fd20c1 px4io driver: Add support for circuit breakers 2014-05-25 20:36:05 +02:00
Lorenz Meier
69421be983 px4io: Check for bad param value 2014-05-23 19:45:29 +02:00
Lorenz Meier
4fe0027e7a px4io driver: Only try to upload if we have a non-zero failsafe throttle value 2014-05-16 09:51:23 +02:00
Lorenz Meier
899998e58f px4io driver: Use modern-days syntax to start task 2014-05-15 10:28:48 +02:00
Lorenz Meier
332e08b44a px4io driver: Deallocate perf counters in destructor properly 2014-05-14 14:00:31 +02:00
Lorenz Meier
c2f825647e px4io driver: Small fix 2014-05-14 13:06:20 +02:00
Lorenz Meier
a62ac72b2e px4io: Hotfix for IO driver, do not rely on the reported channel count to limit array lengths 2014-05-14 12:48:54 +02:00
Lorenz Meier
8deb1c9160 Read out the RC status at the same transfer as the channels to ensure we got synchronized data 2014-05-14 08:00:41 +02:00
Lorenz Meier
1d6b9fae03 Fix in-air restarts, protect against an external MAVLink sender exploiting the restart mechanism 2014-05-06 14:57:06 +02:00
Lorenz Meier
2ee02e5e4b Merge pull request #874 from jean-m-cyr/master
Proper data manager restart handling
2014-04-29 07:53:30 +02:00
Andrew Tridgell
ab1939c6a3 pwm: added PWM_SERVO_SET_FORCE_SAFETY_OFF ioctl
this allows the safety switch on px4io to be forced off
2014-04-28 11:45:45 +02:00
Jean Cyr
ab257ebcce Proper data manager restart handling
Introduce SYS_RESTART_TYPE parameter having one of 3 values: boot
restart, inflight restart, or unknown restart, and defaulting to unknown
restart.

px4io.cpp sets this parameter according to the type of restart detected.

dataman.c retrieves this parameter and clears data entries according to
their persistence level. Does nothing if unknown restart.
2014-04-28 00:52:19 -04:00
Lorenz Meier
262485a5e8 px4io: Typo fixed 2014-04-05 17:09:48 +02:00
Lorenz Meier
3b5e6f9833 sensors and px4io driver: Guard against failsafe trigger for inverted remotes 2014-04-05 11:28:07 +02:00
Lorenz Meier
ce50429769 Merged SBUS minimal changes 2014-04-05 11:17:05 +02:00
Lorenz Meier
73d04f7a37 px4io driver: Only publish RC signal if it was at least once valid. 2014-04-05 11:15:22 +02:00
Lorenz Meier
1eb0b19409 Merged minimal S.BUS failsafe changes 2014-04-05 11:14:19 +02:00
Holger Steinhaus
5e0d687b56 px4io driver: publish input_rc even if RC connection has been lost 2014-04-05 11:05:07 +02:00
Lorenz Meier
9a0b2b7610 Make throttle failsafe depend on the failsafe threshold parameter. Make the parameter optional (no harm if not found). 2014-04-05 11:02:22 +02:00
Lorenz Meier
64ffafb48e Only publish RC inputs if we have seen some valid inputs at some point 2014-04-05 10:28:01 +02:00
Holger Steinhaus
cb3a4f1267 px4io driver: publish input_rc even if RC connection has been lost 2014-03-25 17:12:14 +01:00
Lorenz Meier
533e3172dc Make PX4IO driver obey HIL as it should 2014-03-17 14:32:27 +01:00
Anton Babushkin
a8ff126dfe px4io: print actuator control registers as int16 instead of uint16 2014-03-05 20:00:13 +04:00
Anton Babushkin
149bf4582c px4io: hardcode number of control groups in "px4io status" 2014-03-05 00:05:17 +04:00
Anton Babushkin
a50957c3ce px4io: print all control groups in "px4io status" 2014-03-04 23:13:20 +04:00
Lorenz Meier
a91b68d8a5 Fix DSM pairing error handling. 2014-02-21 08:37:12 +01:00
Lorenz Meier
f1f1ecd096 Fix mavlink feedback FD handling 2014-02-21 08:36:45 +01:00
Lorenz Meier
8d79d91950 Revert "Merge pull request #620 from pigeonhunter/stack_sizes"
This reverts commit 3b31a6b1b9756eb191eaaafb1c137e6874079281, reversing
changes made to 70afb3ca3b3f1844241c9c9312579bbb2475232c.
2014-01-30 21:54:29 +01:00
Lorenz Meier
ff753b9e24 Merged master into lockdown_disable 2014-01-30 10:00:01 +01:00
Lorenz Meier
3b31a6b1b9 Merge pull request #620 from pigeonhunter/stack_sizes
Stack sizes
2014-01-30 00:54:55 -08:00
Darryl Taylor
dfaa5a0c7c Reduced stack from 2048 to 1024. Top reports stack usage at 812 under flight conditions. 2014-01-28 09:57:47 +08:00
Lorenz Meier
2a30c574ce IO status printing improvements / fixes 2014-01-26 15:50:19 +01:00
Lorenz Meier
b67f7b2c7c Fix printing of IO status 2014-01-26 15:16:43 +01:00
Lorenz Meier
9cdbbab855 Differentiate between publication and signal receive timestamp, correctly set the rc_lost flag in the frame. Ready for prime-time testing. 2014-01-26 14:52:46 +01:00
Lorenz Meier
731ab465b3 Add support in the IO driver to control the S.Bus / RSSI port. 2014-01-26 14:22:54 +01:00
Lorenz Meier
57d38bc8ce Clean up RC related metadata, put everything into the RC data page. This ensures atomic reads, makes the reads more efficient and allows for some headroom for more RC flags. The IO driver side is updated as well, however, these flags are not published yet. 2014-01-26 00:17:26 +01:00
Lorenz Meier
bafcbd99a6 Stop setting RSSI by cross-reading servo status. 2014-01-25 23:04:16 +01:00
Lorenz Meier
f2f94f0f17 IO driver: Variable name and comment cleanup, no binary / functionality changes. 2014-01-25 23:03:21 +01:00
Lorenz Meier
1960f7d6c5 Initialize null pointers correctly, always set the pointer to null after deletes. Remove some verbosity from startup and do not try to initialise IO when we just want to reboot it into the bootloader. 2014-01-24 17:29:27 +01:00
Lorenz Meier
2f968357a3 Make the protocol version more descriptive - helps to understand when / how px4io detect fails. 2014-01-24 17:28:04 +01:00
Lorenz Meier
4f78c3e605 Disable PX4IO debug - spams console on comms failure. Each command does report the failure separately, so we get a better feedback level without the spam. 2014-01-24 17:27:28 +01:00
Lorenz Meier
6a40acdbdc Fixed PPM warning to be only printed with PPM inputs enabled 2014-01-23 09:58:22 +01:00
Lorenz Meier
c74660fec5 Merge branch 'rssi' of github.com:PX4/Firmware into rssi 2014-01-23 09:18:01 +01:00
Lorenz Meier
d77a15e94f Last small fixes to IO driver to support updates with and without switch pressed and with and without px4io start call before the forceupdate call 2014-01-23 09:16:40 +01:00
px4dev
1ac8501d95 Clear the screen more properly. 2014-01-22 23:52:06 -08:00
Lorenz Meier
8833f81b48 Do not make PX4IO start mandatory for forceupdate 2014-01-23 08:45:29 +01:00