Commit Graph

86 Commits

Author SHA1 Message Date
Andrew Tridgell d6b38f4009 SRV_Channel: added get_output_pwm_chan() for scripting
allows for servo drivers to be written in lua
2024-11-28 09:24:03 +11:00
Peter Barker 89936bab3d SRV_Channel: make SRV_Channels::cork non-static
for symmetry with the push function
2024-11-13 19:47:49 +11:00
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 7bdb8d770d SRV_Channel: added AM32 to the SERVO_DSHOT_ESC param docs
setting 3 works well with AM32
2024-08-04 07:31:22 +10:00
Peter Barker bf63729d31 SRV_Channels: gate method on scripting being enabled
also AP_Scheduler since we're calling and instance method on it
2024-04-18 08:25:15 +10:00
Peter Barker 0dae9b46ee SRV_Channel: correct description of SERVO_RC_FS_MSK 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
Peter Barker 89dcafcc5c SRV_Channel: add and use AP_SBUSOUTPUT_ENABLED
.... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards.
2023-06-27 10:10:41 +10:00
Andy Piper 79bd29e9a7 SRV_Channel: add documentation for ESCs supporting extended dshot telemetry (EDT) 2023-06-27 09:28:33 +10:00
Peter Barker 79f08394b3 SRV_Channel: move and rename CAN Driver_Type enumeration 2023-04-20 08:53:46 +10:00
Peter Barker 8c203d29d0 SRV_Channel: remove CANTester 2023-04-18 11:43:58 +10:00
Tom Pittenger c2e1eeac98 SRV_Channel: move AP_KDECAN to a first-class library 2023-04-17 11:52:52 +10:00
Andrew Tridgell 6b268173dd SRV_Channel: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 9e31757b24 SRV_Channel: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 6125997093 SRV_Channel: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
bugobliterator fcfc4ce889 SRV_Channel: replace libuavcan with libcanard based driver 2023-03-29 17:16:39 +11:00
Peter Barker 26e4e7fd3b SRV_Channel: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Andy Piper cea9f639fc SRV_Channel: allow motor mask and motor output type to be passed in for AP_Periph 2022-09-20 09:45:03 +10:00
Supernovae 91afa19543 SRV_Channels.cpp: small correction
it's not only Auxilary o/p but affects the main o/p as well.
2022-09-15 10:49:32 +10:00
Henry Wurzburg 61b0f23ee2 SRV_Channel: add ARM/MOTOR_EMERGENCY_STOP Aux Switch 2022-08-24 16:03:52 +10:00
Randy Mackay 2a264b0331 SRV_Channel: remove ToshibaCAN support 2022-06-10 12:08:05 +09:00
Andy Piper e95d116979 SRV_Channel: add BLHeli_S ESC type 2022-05-25 17:06:08 +10:00
Andrew Tridgell 11a06aa6cb SRV_Channel: re-fixed typo 2022-05-22 12:07:37 +10: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 a5928b752e SRV_Channels: set channels above 16 to GPIO by defualt 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 961cf659d9 SRV_Channels: stop gating FETTECONEWIRE parameters on HAL_BUILD_BUILD_AP_PERIPH
This would break fettech on AP_Periph.  The define is off by default on
AP_Periph.
2022-04-12 10:35:01 +10:00
Peter Barker a5be9d0f18 SRV_Channel: allow RobotisServo protocol to be compiled out 2022-04-12 10:35:01 +10:00
Peter Barker 3339d96573 SRV_Channel: allow Volz protocol to be compiled out 2022-04-12 10:35:01 +10:00
Iampete1 fd11620383 SRV_Channels: correct RC channel define to SERVO channel 2022-01-30 17:29:56 +11:00
Iampete1 6fd989e2ab SRV_Channel: add native slew rate limiting 2022-01-25 10:12:13 +11:00
Randy Mackay e41cad8bd7 SRV_Channel: minor param desc format fix 2021-12-21 14:45:49 +09: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
Andrew Tridgell 9359f39e30 SRV_Channel: allow for AP_Periph ESC telemetry 2021-12-10 08:11:24 -08:00
Andrew Tridgell c6bde6745a SRV_Channel: allow BLHeli build with AP_Periph 2021-12-10 08:11:24 -08:00
Peter Barker fd97d79cb4 SRV_Channels: move fetteconewire out of AP_Periph #if 2021-11-24 12:01:22 +11:00
Peter Barker 2bfd2f1c32 SRV_Channel: rename HAL_AP_FETTEC_ONEWIRE_ENABLED to AP_FETTEC_ONEWIRE_ENABLED 2021-11-24 12:01:22 +11:00
Andy Piper 9bea417d5c SRV_Channel: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI 2021-10-26 11:42:12 +11:00
Andrew Tridgell 5f6af3567a SRV_Channel: added SERVO_GPIO_MASK
this allows for channels to be set as GPIO without setting
SERVOn_FUNCTION=-1. That allows for use of UAVCAN or SBUS outputs on
those channels with a servo function, while using the aux pin as a
GPIO
2021-10-11 19:28:11 +11:00
Gone4Dirt ab07a7c4fa SRV_Channel: Add APM_BUILD_Heli 2021-09-29 19:55:48 +10:00
Iampete1 f541653502 SRV_Channel: fix override timeout without repeated calls 2021-09-21 10:24:04 +10:00
Pierre Kancir 2020fbaa26 SRV_Channel: add FETtec support 2021-08-13 16:22:37 +10:00
Siddharth Purohit 69cc0b4615 SRV_Channel: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-24 09:02:42 +10:00
Tom Pittenger 0590352bef SRV_Channel: do not use AP_UAVCAN unless LIBUAVCAN is enabled 2021-06-09 18:36:18 +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
Andy Piper 18366a4b6d SRV_Channel: propagate ESC type into rcout 2021-05-05 17:41:24 +10:00