Commit Graph

198 Commits

Author SHA1 Message Date
Lorenz Meier 07d11583bb Rely on theoretical value, as the closed-loop test with multimeter suggests this is the most accurate measurement 2014-07-21 20:21:20 +02:00
Lorenz Meier 178b0f7399 Cross-check with nominal values from divider 2014-07-21 19:25:23 +02:00
Lorenz Meier 0fc73a1484 Fix comment, missing brace in comment 2014-07-21 13:46:38 +02:00
Lorenz Meier 956c084f31 Fit IO voltage estimation using a new dataset, cross-validated with a second unit. Pending testing 2014-07-21 13:31:35 +02:00
Lorenz Meier 87cc7a81ff Support force fail in valid filter 2014-07-19 15:08:56 +02:00
Lorenz Meier 9a53fd9648 Add force failsafe flag 2014-07-18 11:18:32 +02:00
px4dev d2a2297a14 Fixes #1130 2014-07-06 11:24:39 -07:00
Lorenz Meier 93dcd90404 Merge pull request #919 from TickTock-/hotfix_override_threshold
Changed low threshold in px4io firmware to 10%...
2014-07-03 12:31:51 +02:00
Lorenz Meier 751f8462f6 IO firmware: Warning / bug fixes 2014-06-30 12:21:23 +02:00
Don Gagne 92adbe9216 Fix compiler warnings 2014-06-29 17:47:24 -07:00
Lorenz Meier 0ea3e95422 px4iofirmware: Indicate with a comment that band limiting happens in pwm_limit() call 2014-05-23 20:23:33 +02:00
Lorenz Meier 1b491005d1 Minor cleanups on handling, make wrong reg accesses non-fatal for the transfer 2014-05-16 10:43:50 +02:00
Lorenz Meier 5ca96631fc px4io firmware: Actually accept failsafe values, check their range. Add an error return code for commands that were rejected on reboot and force safety instead of failing silently with an OK value 2014-05-16 09:52:46 +02:00
Lorenz Meier b903fc1ed3 px4io: Improve the documentation of the protocol header, NO FUNCTIONAL CHANGES 2014-05-16 09:50:10 +02:00
Lorenz Meier 97fb361ea9 Set an RC status flag so that we can read out the RC status in parallel to the RC data 2014-05-14 08:00:00 +02:00
TickTock- 559c62b6bc Changed low threshold in px4io firmware to 10% to ensure compatibility with user configured single channel, mode switches 2014-05-09 15:17:38 -07:00
Lorenz Meier d1909ca94b Merge pull request #878 from PX4/sbus_out
S.BUS output
2014-05-05 08:04:28 -07:00
Andrew Tridgell ac52111085 px4io: support PX4IO_P_SETUP_FORCE_SAFETY_OFF
this allows the FMU to force the safety off on the IO board. Useful in
two cases:

 1) vehicles where the safety switch is impractical or not useful
 (eg. HAB planes or internal combustion motors)

 2) doing ESC calibration on multi-copters
2014-04-28 11:45:20 +02:00
Lorenz Meier 024de1fec4 Remove unwanted colon 2014-04-05 17:04:36 +02:00
Lorenz Meier 1eb0b19409 Merged minimal S.BUS failsafe changes 2014-04-05 11:14:19 +02:00
Lorenz Meier 3e4841b6fe px4io: Guard against the RC failsafe value of channel 5 causing a manual override action if set to manual in failsafe 2014-04-05 11:10:41 +02:00
Lorenz Meier 09d1064327 px4io: Remove unused variable 2014-04-05 11:06:07 +02:00
Holger Steinhaus 745ef4f485 px4io: do not include failsafe condition into rc_lost flag 2014-04-05 11:05:17 +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 9123ebce8c px4io: Allow RC failsafe detection as valid feature 2014-04-05 10:45:02 +02:00
Lorenz Meier c6d98a32f8 Proper failsafe handling onboard, including throttle failsafe condition if enabled 2014-04-05 10:27:43 +02:00
Holger Steinhaus 409fa565f4 px4io: do not include failsafe condition into rc_lost flag 2014-03-25 17:12:27 +01:00
Anton Babushkin af548db7cc px4iofirmware: define 4 actuator control groups 2014-03-05 00:01:27 +04:00
Lorenz Meier 983cff56b3 Added int cast to handle arithmetic correctly 2014-02-21 12:50:29 +01:00
Lorenz Meier 06b69b70a5 Scaling Spektrum inputs into normalized value same as the servo outputs do 2014-02-21 12:27:04 +01:00
Lorenz Meier b58fa2dffc Change bit mask to allow for 10 channels. 2014-02-21 08:34:36 +01:00
Lorenz Meier cfb4f76bad Merge pull request #684 from PX4/dsm_fix
Dsm support for DX10t
2014-02-21 08:12:04 +01:00
Lorenz Meier 9828d5ede4 Fix copyright, do not return junk channel #13 that Spektrum gives us. 2014-02-21 08:07:49 +01:00
Lorenz Meier 2d97dff35c Added support for DX10t, which apparently outputs 13 channels 2014-02-21 08:07:42 +01:00
Anton Babushkin 4cfaf928e1 px4io: bug in failsafe fixed 2014-02-18 16:11:46 +04:00
Lorenz Meier 91c55503a8 Ensure only either S.BUS1 or S.BUS2 can be active at a time 2014-02-13 08:25:49 +01:00
Lorenz Meier 6a1f91e625 Make SBUS output exclusive 2014-02-13 08:22:05 +01:00
px4dev dd432e6603 Remove the s.bus test loop... makes it very hard to update the firmware. 2014-02-12 22:11:09 -08:00
px4dev ca2ad0051d Be more enthusiastic with the sbus enable pin. Still no love. 2014-02-12 00:48:53 -08:00
Lorenz Meier 3bcf34098a Fix quotation marks 2014-02-12 08:50:44 +01:00
Lorenz Meier 85ec7fb40a test loop 2014-02-12 08:47:01 +01:00
Lorenz Meier 500ac69ee4 Build test code for S.BUS output, send test characters once S.BUS1 or S.BUS2 is enabled 2014-02-12 08:13:53 +01:00
Lorenz Meier ff753b9e24 Merged master into lockdown_disable 2014-01-30 10:00:01 +01:00
Lorenz Meier 0393b2aa12 Build fix for IO control input parsing. 2014-01-26 16:01:39 +01:00
Lorenz Meier 00a3270dc6 Differentiate between failsafe having kicked in (which stops the normal output mixing based on RC outputs and prevents unwanted control commands due to failsafe) and a true loss of the receiver, where we stop outputting RC channel readings downstream on FMU. 2014-01-26 15:52:51 +01:00
Lorenz Meier d1c934233f Fix S.BUS decoder to return value even if its just failsafe 2014-01-26 15:30:16 +01:00
Lorenz Meier cc68d11353 Add flag to indicate proper RC mapping 2014-01-26 15:26:19 +01:00
Lorenz Meier ac32116f00 Fix docs header 2014-01-26 15:17:01 +01:00
Lorenz Meier 16eb68f2e9 Allow the setup flags to control the S.BUS / RSSI port instead of doing some wild, likely incorrect, guesses. 2014-01-26 14:13:57 +01:00
Lorenz Meier a737a2a406 RSSI and SBUS out config now handled as setup feature flags. 2014-01-26 13:22:26 +01:00