Commit Graph

66 Commits

Author SHA1 Message Date
Andrew Tridgell 32d846520c SRV_Channel: validate function number before array access
this fixes an issue with invalid SERVOn_FUNCTION values for array
index.
2021-12-15 18:10:45 +11:00
Peter Barker 7c126b1e7b SRV_Channel: make function an Enum16 2021-12-14 11:28:33 +11:00
Peter Barker b32b31aecd SRV_Channel: correct casting of servo function number 2021-11-30 10:32:16 +11:00
Iampete1 b84633630a SRV_Channel: use floats for get/set output scaled 2021-10-20 18:29:58 +11:00
Iampete1 0a41cdaa24 SRV_Channel: add ignore reversed flag to set_trim_to_min_for 2021-09-15 18:59:07 +09:00
Iampete1 2abe120969 SRV_Channel: remove set_safety_limit 2021-09-14 09:23:02 +10:00
Iampete1 e82860266d SRV_Channel: call update_aux_servo_function in function_assigned 2021-09-01 18:34:45 +10:00
Andy Piper c7cc53d224 SRV_Channel: call rcout->update_channel_masks() at 1Hz 2021-06-22 09:55:27 +10:00
Andy Piper 8deeae7146 SRV_Channel: consolidate digital and reversible outputs to make clear the dependency 2021-05-12 21:02:42 +10:00
Andy Piper db85df1051 SRV_Channel: initialize BLHeli
make sure digital output settinsg are preserved
add accessor for digital outputs
2021-05-12 21:02:42 +10:00
Andrew Tridgell 11e4b62438 SRV_Channel: allow build with no channels
needed for AP_Periph when using LED driver only
2021-05-09 06:44:19 +10:00
Andrew Tridgell a74d087fd8 SRV_Channel: prevent FPE with SERVOn_MIN==SERVOn_MAX 2021-01-05 08:23:28 +11:00
Tom Pittenger c01726b07d SRV_Channel: reduce dependencies for AP_Periph builds 2020-12-21 18:27:07 -08:00
Andrew Tridgell 7f3a851dd3 SRV_Channel: added support for rear motor tilt 2020-12-21 12:05:50 +11:00
Peter Barker 3264fd750b SRV_Channel: add k_min, m_trim and k_max to output min/trim/max values 2020-12-01 10:06:57 +11:00
Peter Barker 5c2b478feb SRV_Channel: remove unused set_output_pwm_first method 2020-09-08 10:55:23 +10:00
Samuel Tabor f1290a2e17 Plane: Add use of airbrakes, used when throttle is negative OR via RC channel option. 2020-09-02 10:10:09 -07:00
Randy Mackay 4a21dbf785 SRV_Channel: default scripting1 to 16 to angle of 4500 2020-08-20 14:09:29 +09:00
Randy Mackay 9f197db93c SRV_Channel: add set_output_norm 2020-08-20 14:09:29 +09:00
Iampete1 0d53ce4cd7 SRV_Channel: re-work timeout 2020-06-09 09:04:14 +10:00
Peter Barker aa356b563d SRV_Channel: remove unused RCMAP includes 2020-02-10 13:55:05 +11:00
murata 58c823acc1 SRV_Channel: Change from direct value to defined value 2020-01-31 11:34:08 +11:00
Andrew Tridgell 4f3725c16c SRV_Channel: change function to AP_Int16
this also removes the old parameter conversion code used for when we
first added the SERVO parameters. This was needed for conversion from
Copter 3.4 and Plane 3.7
2020-01-14 14:23:11 +11:00
Peter Barker f1c2e55f68 SRV_Channel: use enum-class for SRV_CHANNEL_LIMIT_TRIM and friends 2019-11-26 10:17:17 +11:00
Andrew Tridgell 892f2d4256 SRV_Channel: added direct output of rate control on multicopters 2019-10-25 17:11:56 +11:00
Tatsuya Yamaguchi f9547fa28e SRV_Channel: allow DO_SET_SERVO commands while rc pass-thru 2019-06-13 09:51:21 +09:00
Tom Pittenger 9e3cf3ad33 SRV_Channels: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Andrew Tridgell fbcbbb72b1 SRV_Channel: support reversible DShot motors
force the PWM MIN/MAX to 1000/2000
2018-11-16 08:33:35 +11:00
Andrew Tridgell 6af709e617 SRV_Channel: fixed build warnings 2018-10-17 12:54:22 +11:00
Peter Barker aa4cf5b40e SRV_Channel: use method to get rc channels 2018-08-03 13:07:50 +10:00
Peter Barker c1a1f4f970 SRV_Channel: use rc() method to get rc singleton 2018-08-01 12:11:30 +09:00
Michael du Breuil 80313abf31 SRV_Channel: Remove useless read from manual passthrough 2018-08-01 09:19:20 +10:00
bnsgeyer c3d4b792ad SRV_Channel: fixes channel numbering for channel already assigned message 2018-07-16 12:41:16 +10:00
bnsgeyer 73df3e0af2 SRV_Channel: modified set_output_pwm_trimmed for reverse property
Modified function to account for servo reverse property
2018-07-16 12:41:16 +10:00
Andrew Tridgell e94177e469 SRV_Channel: added function based set_output_min_max
this is for a conversion of AP_Motors heli code to servo functions
2018-07-16 12:41:16 +10:00
Andrew Tridgell d54d3351de SRV_Channel: check for rcout serial for blheli support 2018-04-07 09:10:29 +10:00
Andrew Tridgell 0018e1f944 SRV_Channel: added set_disabled_channel_mask()
used by AP_BLHeli
2018-04-07 09:10:29 +10:00
Andrew Tridgell 1be41b83fc SRV_Channel: added SERVO_BLHI_ parameters 2018-04-07 09:10:29 +10:00
Andrew Tridgell c0c4021605 SRV_Channels: fix for replay 2018-01-15 11:46:02 +11:00
Andrew Tridgell 0682d30ebd SRV_Channel: ensure channel_mask is setup 2017-10-22 15:52:50 +11:00
Andrew Tridgell 39fd25bb36 SRV_Channel: added get_output_channel_mask()
will be used by AP_Motors
2017-10-22 15:52:50 +11:00
Andrew Tridgell ed272833c3 SRV_Channel: don't treat k_motorN specially 2017-10-22 15:52:50 +11:00
Andrew Tridgell 99f5229a34 SRV_Channel: added copy_radio_in_out_mask() 2017-08-01 08:25:32 +10:00
Andrew Tridgell 75999dbb39 SRV_Channel: prevent negative slew rate
thanks to Michael for pointing this out
2017-08-01 08:25:32 +10:00
Randy Mackay 9123b6034e SRV_Channel: update_aux_servo_function first checks function is valid
This resolves a bug in which the board could become unresponsive if an invalid function is selected
2017-07-27 11:09:57 +09:00
Randy Mackay 572df8b859 SRV_Channel: minor formatting fixes
no functional change
2017-07-26 13:28:07 +09:00
Andrew Tridgell 4ca3546551 SRV_Channel: added SERVO_DEF_RATE parameter
this allows for the default rate of servo outputs to be set. This is
needed for some planes where 50Hz isn't enough (eg. tailsitters)
2017-07-24 14:07:28 +10:00
Andrew Tridgell cde4afd28e SRV_Channel: added set_trim_to_servo_out_for()
this will be used for new TRIM_AUTO functionality in plane
2017-07-03 11:17:42 +10:00
Andrew Tridgell 7627246ff8 SRV_Channels: added 4 channel dspoiler support 2017-07-03 11:17:42 +10:00
Andrew Tridgell 6b3bb29398 SRV_Channel: rename flaperon1 and flaperon2 to flaperon_left and flaperon_right
this makes it more consistent with elevons and vtails
2017-07-03 11:17:42 +10:00