Commit Graph
274 Commits
Author SHA1 Message Date
Andrew Tridgell ba81125453 px4io: added OVERRIDE_IMMEDIATE arming flag
this allows the flight code to choose whether FMU failure gives
immediate manual pilot control, or waits for the mode switch to go
past the override threshold
2014-11-16 21:02:14 +01:00
Andrew Tridgell 6406e235d6 px4io: publish pwm values when STATUS_FLAGS_FMU_OK is not set
this allows testing of FMU failure behaviour in px4io by monitoring
the reported PWM output when the vehicle code stops sending
updates. Otherwise testing needs to be done with "px4io status" which
is very tedious.

With this change a GCS can monitor the PWM outputs from the failsafe
mixer using normal mavlink messages
2014-11-16 21:01:00 +01:00
Andrew Tridgell 88bae21ce5 px4io: added RC_CONFIG, SET_OVERRIDE_OK and CLEAR_OVERRIDE_OK ioctls
this allows for full setup of RC override without needing param_get()
to PX4 specific parameters
2014-11-16 21:00:01 +01:00
Lorenz Meier 32313a13dd PX4IO driver: Optimize for size 2014-11-15 13:54:16 +01:00
Lorenz Meier 88093ebf1a Hotfix: Fix IO channel mapping 2014-11-10 18:52:18 +01:00
Lorenz Meier 23a33e31cd Add missing mode switch channel 2014-11-05 19:26:10 +01:00
Lorenz Meier 182c1c1d52 Fix RC mapping indices - 0 index induces issues right now 2014-11-05 17:17:34 +01:00
Andrew Tridgell dd23d0acbc drivers: allow forcing the safety switch on
This allows forcing the safety switch to the on position from software
which stops the pwm outputs
2014-10-30 08:44:00 +11:00
Lorenz Meier f490331632 Enable flaps, avoid mode switch position 2014-10-16 22:57:27 +02:00
Lorenz Meier 0d917576d4 Enable flaps in manual override 2014-10-15 22:19:06 +02:00
Lorenz Meier 7921184e40 IO input driver: Output ST24 as receiver type / status 2014-10-07 09:36:42 +02:00
Thomas Gubler 8b7c57a0d0 px4io driver: update cb only when changed 2014-09-30 13:39:40 +02:00
Thomas Gubler 92c3e52fec Merge remote-tracking branch 'upstream/termination_failsafe' into obcfailsafe 2014-08-27 21:34:07 +02:00
Lorenz Meier a7109609ec support termination failsafe in IO driver 2014-08-27 08:00:28 +02:00
Thomas Gubler 5e5322c593 fix flight termination circuit breaker name, tested 2014-08-26 22:46:09 +02:00
Thomas Gubler ca44efab7c Merge remote-tracking branch 'upstream/master' into obcfailsafe 2014-08-17 10:46:11 +02:00
Holger Steinhaus 5b1e4db396 px4io driver: fix actuator output format 2014-08-16 21:44:52 +02:00
Thomas Gubler 8dbe6a6dc0 px4io driver: use flighttermination circuit breaker 2014-08-15 14:35:45 +02:00
Lorenz Meier 0c0c8e943a Fixed missing return value after last change set 2014-08-12 07:30:01 +02:00
Lorenz Meier 7d1cd7b994 Fix NO RC handling (fixes #1263) 2014-08-11 19:28:14 +02:00
Jean Cyr 3a4da7c5fa Revert to original loop
Original loop was correct, and slightly more efficient. Retain
initialization of ret to handle the case where passed in count is 0.
2014-07-26 09:05:44 -04:00
Jean Cyr 2de38d0628 Improve update performance and clean up compiler warnings in px4io driver
- Fix compiler warnings in px4io_serial.cpp
- Fix compiler warnings in px4io_uploader.cpp
- Rename confusing overloaded send method with nearly identical
parameters in px4io_uploader.cpp
- Improve update performance by using maximum size programming buffer
since we are no longer limited by stack size.
2014-07-25 23:30:37 -04:00
Lorenz Meier 0b3e300303 Merge branch 'forcefail' of github.com:PX4/Firmware into forcefail 2014-07-19 15:10:36 +02:00
Lorenz Meier f3fe9c2fdf Print force fail status 2014-07-19 15:09:07 +02:00
Thomas Gubler 689536893c px4io driver: force failsafe depending on actuator armed 2014-07-19 12:46:52 +02:00
Lorenz Meier 903b482378 PX4IO driver: Add support to set force failsafe 2014-07-18 11:19:05 +02:00
Lorenz Meier 7625ea5e8a Merge pull request #1188 from PX4/sensor_startup_cleanup
Sensor startup cleanup
2014-07-16 15:31:00 +02:00
Lorenz Meier 1dd4282099 Merge pull request #1165 from jean-m-cyr/master
px4io_uploader cleanup and minor optimization
2014-07-16 09:40:06 +02:00
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
unknown 25b036c6a5 Merge branch 'master' of https://github.com/PX4/Firmware 2014-07-12 14:48:19 -04:00
Jean Cyr e8c5b8230d px4io_uploader cleanup and minor optimization
Remove redundant code
Cleanup error handling in program function
2014-07-10 23:01:41 -04:00
hxxnrx c97e08bcf0 Set IO PX4_I2C_BUS_ONBOARD I2C speed to 400KHz 2014-07-10 21:50:23 +02:00
Jean Cyr 12da0efbb2 Read the full buffer
sizeof wont work here since file_buf is now a pointer
2014-07-10 00:55:33 -04:00
Jean Cyr 8c6745d53f Prevent stack overflow when flashing px4io
Large local variable causing stack overflow when attempting to flash
IO!!!
2014-07-10 00:41:09 -04:00
Lorenz Meier 6aed623b6c Merge branch 'master' of github.com:PX4/Firmware into power_enforce 2014-06-30 10:04:34 +02:00
Don Gagne 92adbe9216 Fix compiler warnings 2014-06-29 17:47:24 -07: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 aa312f96f8 drivers: Fix compile warnings and non-standard performance counter names 2014-05-21 14:20:48 +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 19d798addc px4io driver: init stack only twice as big as really needed and not four times as big 2014-05-14 21:52:25 +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