Commit Graph

88 Commits

Author SHA1 Message Date
Peter Barker a0eef1039c SRV_Channel: create and use a singleton for SRV_Channels
avoid creation of static pointers to objects held within SRV_Channels
2024-11-13 19:47:49 +11:00
Andrew Tridgell 05fbc4767d SRV_Channel: added lift_release
for releasing a balloon or other lift device
2024-09-10 10:15:34 +10:00
Iampete1 eee2d2f57e SRV_Channel: add methods to set defualt and save min/max values 2024-08-27 09:37:34 +10:00
Iampete1 4ab976178e SRV_Channels: find_channel: use channel mask remove need for search over all channels 2024-08-20 09:41:58 +10:00
Andrew Tridgell 3682e3aad3 SRV_Channel: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Randy Mackay 265f19b396 SRV_Channel: fix scaled passthrough of ranges 2023-11-15 18:20:45 +11:00
Peter Barker b8c1367aac SRV_Channel: avoid using bad RC data in passthrough code
we may not have valid input but not be at the stage of declaring an RC failsafe.
2023-08-15 08:16:16 +10:00
Henry Wurzburg 78e44ebf3a SRV_Channel: allow scaled passthru to go to trim on rc failsafe 2023-06-29 21:37:12 +10:00
Iampete1 4785c248c5 SRV_Channel: remove unused defualt in get channel for function 2023-04-11 09:13:26 +10:00
Peter Barker ea26154088 SRV_Channel: add and use RC_Channel_config.h 2023-03-22 14:25:09 +11:00
Iampete1 eefda1130c SRV_Channel: adjust trim, check all channels for range limit 2022-09-20 11:20:16 +10:00
TunaLobster f28f5a1ad5 SRV_Channel: Add SRV fucntions for scaled RC passthrough 2022-08-31 17:05:39 +10:00
Iampete1 7ee330d12d SRV_Channel: use set_and_default method 2022-07-20 17:59:59 +10:00
Ruffalo-sunghwan e0d14d900a SRV_Channel : correct comment spelling 2022-05-24 20:27:45 +09:00
Andrew Tridgell e185e1252b SRV_Channel: added a SERVO_32_ENABLE parameter
save on param count for most users
2022-05-22 12:07:37 +10:00
Iampete1 d1e02e4fdd SRV_Channel: add invalid mask for GPIO outputs 2022-05-22 12:07:37 +10:00
Iampete1 077401df69 SRV_Channel: add upto 32 servo outs 2022-05-22 12:07:37 +10:00
Mirko Denecke e60520160f SRV_Channel: fix auxiliary typo 2022-05-02 10:55:08 +10:00
Peter Barker a5dee06afb SRV_Channel: add PARAMETER CONVERSION comments 2022-04-28 10:17:11 +10:00
Andy Piper cc6b907a2f SRV_Channel: observe disabled_channels when enabling channels
setup disabled_channels observing channels that are implied to be digital
allow none to be a valid channel function once again
2022-04-25 15:55:54 +09:00
Andy Piper 6511a65b67 SRV_Channel: don't count disabled channels in mask and setup functions
disable channels that are not in use
2022-03-29 10:29:31 +11:00
Iampete1 6fd989e2ab SRV_Channel: add native slew rate limiting 2022-01-25 10:12:13 +11:00
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