Commit Graph

266 Commits

Author SHA1 Message Date
Mark Whitehorn 61904d3106 fix type mismatch 2015-05-29 10:05:29 -06:00
Lorenz Meier ad251d558f px4io driver: update command names 2015-05-27 15:21:33 -07:00
Lorenz Meier d54b931554 IO driver: auto update param 2015-05-25 16:42:47 +02:00
Lorenz Meier b155e97a54 Load IO params for mask 2015-05-25 16:42:47 +02:00
Simon Wilks ea8ba79481 Read the current flight termination circuit breaker value, not just updated values. 2015-05-07 08:27:41 +02:00
Andreas Antener cd4154d805 Revert "Merge pull request #1819 from PX4/chan16" because of #2113
This reverts commit f8c8876642, reversing
changes made to de3888bed7.
2015-05-05 14:41:53 +02:00
Lorenz Meier e09f5d2871 IO driver: Ensure comms protocol cannot get into integer overflow on bad control outputs. Fixes #2119. 2015-05-04 14:59:07 +02:00
Lorenz Meier 980d9bcf3e IO driver: Code style 2015-05-04 14:55:19 +02:00
Roman Bapst c3111ecadf added option for esc calibration 2015-04-28 15:15:46 +02:00
Andreas Antener 9c282cf6d6 added parameters to specify range and channel, caping result 2015-04-21 07:01:58 +02:00
Andreas Antener 92bdf74423 overwrite rc in rssi with value from pwm input, parameters hardcoded 2015-04-21 07:01:44 +02:00
Roman Bapst 555e96a37a fixed publication of mixer limit flags 2015-04-10 20:26:38 +02:00
Lorenz Meier f8c8876642 Merge pull request #1819 from PX4/chan16
Support 16 channels on IO via S.BUS
2015-04-07 19:04:19 +02:00
philipoe 20f6fbd864 PX4IO driver: Add mapping of AUX1-3 channels, in case these are also used as control surface inputs 2015-03-24 12:50:48 +01:00
Lorenz Meier ea5293b6fe PX4IO driver: Support 16 output channels 2015-03-15 17:39:43 +01:00
Lorenz Meier 93997acdd2 px4io driver: Clean up log / warn style 2015-02-15 19:52:02 +01:00
Lorenz Meier ccac7cbd78 PX4IO driver: better feedback 2015-02-15 19:52:01 +01:00
Lorenz Meier fac158f7e5 Board drivers: Move to 0-based index 2015-02-09 22:56:22 +01:00
Lorenz Meier 0fd11b78eb Fix PX4IO startup 2015-02-08 12:30:39 +01:00
Lorenz Meier 6eaf634c5d Improve IO driver feedback 2015-02-08 01:48:41 +01:00
Lorenz Meier d441d38677 Merged master into ros 2015-02-02 21:21:51 +01:00
Lorenz Meier 99a4724ef1 IO driver: Fix naming of safety command line argument 2015-02-01 13:14:30 +01:00
Jonathan Challinger f7d875d58d px4io: add safety_arm and safety_disarm commands
This will be used to make updating firmware on boot for vehicles with
no safety switch possible without power cycling. The startup script
needs to be able to force safety on to allow the reboot to work.
2015-02-01 13:12:21 +01:00
Thomas Gubler 84ff3c671d Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge2_attctrl_posctrl
Conflicts:
	src/drivers/px4fmu/fmu.cpp
2015-02-01 11:06:47 +01:00
Lorenz Meier 51088026c7 IO driver: move to topic groups 2015-01-29 16:33:54 +01:00
Thomas Gubler 2728889f78 Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge_attctlposctl 2015-01-28 16:29:14 +01:00
Thomas Gubler 14aa5f9441 add topic header includes 2015-01-25 15:00:35 +01:00
David Sidrane 2a00948c7a Added prefix to Match Message also 2015-01-21 10:19:24 -10:00
David Sidrane 0943bd9a31 Added Prefix to message to identify it as PX4IO related 2015-01-21 09:54:49 -10:00
Lorenz Meier 9aa7daa86c PX4IO: Adjust stack size based on real usage of 900 bytes 2015-01-21 09:22:46 +01:00
Lorenz Meier 12ce2de7ae IO driver: Fix resource corner case (not a real leak) 2015-01-21 08:58:47 +01:00
Lorenz Meier 81082c4119 Fix CID 12453 2015-01-20 14:21:03 +01:00
Lorenz Meier 603b43b6d8 Fix CID 12574 & 12553 2015-01-20 14:16:48 +01:00
Lorenz Meier c04f870564 Fix CID 12427 & 12438 2015-01-20 14:14:23 +01:00
Lorenz Meier f1a53f5152 Fixing CID 12528 2015-01-20 14:12:25 +01:00
Lorenz Meier fc9c67f5be Fix CID 12439 2015-01-20 14:07:59 +01:00
Lorenz Meier 764f499405 Fix CID 12470 2015-01-20 14:06:12 +01:00
Lorenz Meier 6203c73ccc Perf counter fixes 2015-01-11 11:03:56 +01:00
Lorenz Meier 1bee73af22 Latency measurements: Estimate latency based on sensor timestamp through full system 2015-01-11 11:03:56 +01:00
Lorenz Meier 4712c75dea IO driver: Log the total system latency up to the IO transfer 2015-01-11 11:03:55 +01:00
Andrew Tridgell c906c21238 px4io: prevent use of uninitialised memory in io_set_arming_state()
the vehicle may not have setup a control_mode. We need to check the
return of orb_copy() to ensure we are getting initialised values
2014-11-26 11:39:41 +11:00
Andrew Tridgell 29f000dc31 px4io: fixed error returns to be negative
follow standard conventions
2014-11-26 11:39:41 +11:00
Andrew Tridgell 809500cfcd px4io: fixed RC_CONFIG channel limit check
number of channels is the right test, not number of actuators
2014-11-26 11:39:41 +11:00
Lorenz Meier 7b43b80c37 Merge branch 'master' of github.com:PX4/Firmware into safety 2014-11-22 14:40:41 +01:00
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 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