Commit Graph

163 Commits

Author SHA1 Message Date
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
Randy Mackay 00757fb77f SRV_Channel: fix get_output_norm comment
also minor formatting fix
2020-08-20 14:09:29 +09:00
Siddharth Purohit 8b74f94a7a SRV_Channels: use AP_CANManager library 2020-08-19 17:31:09 +10:00
Randy Mackay 615d3e6205 SRV_Channel: add winch_clutch function 2020-08-07 21:55:07 +09:00
Peter Barker d508ca1bbb SRV_Channel: rename k_richenpower_control to k_generator_control 2020-08-05 16:26:19 +09:00
Peter Barker 007a85e873 SRV_Channel: grab a servo function to control the RichenPower generators 2020-07-03 08:21:42 +09:00
Henry Wurzburg 49be9d1626 SRV_Channel: fix parameters appearing in wiki param list erroneously 2020-06-30 16:24:19 +10:00
Iampete1 0d53ce4cd7 SRV_Channel: re-work timeout 2020-06-09 09:04:14 +10:00
Andrew Tridgell 5bfcb0ed4a SRV_Channel: Add servo chan override w/ timeout
Adds a feature to override a servo output for a given time. Scripting
bindings and example included.
2020-05-25 14:10:01 +10:00
Siddharth Purohit a3a3abbf23 SRV_Channels: fix unannotated fall-through between switch labels 2020-04-01 17:10:36 +11:00
Peter Hall 53caf516f9 SRV_Channel: add missing ProfiLED description values 2020-03-24 13:37:20 +09:00
Peter Hall 001f71e3de SRV_Channel: add ProfiLED ouputs 2020-03-10 10:37:26 +11:00
Randy Mackay e0af13a6ad SRV_Channel: remove release and choke from FUNCTION param description
release (aka eggdrop) was 11
choke was 68
2020-02-11 11:08:02 +11:00
Peter Barker aa356b563d SRV_Channel: remove unused RCMAP includes 2020-02-10 13:55:05 +11:00
Tatsuya Yamaguchi 0b8ad28272 SRV_Channel: add sprayer and camera aperture output 2020-02-05 14:44:07 +09:00
murata 58c823acc1 SRV_Channel: Change from direct value to defined value 2020-01-31 11:34:08 +11:00
Peter Hall de684530f1 SRV_Channel: add wing sail elevator output 2020-01-28 08:26:41 +09:00
Andrew Tridgell 87a51899bd SRV_Channel: update SERVO_AUTO_TRIM docs 2020-01-20 06:50:36 +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
Randy Mackay f1047adca5 SRV_Channel: add NeoPixelx to function param description 2020-01-09 11:38:37 +09:00
Peter Barker 708a6f99a6 SRV_Channel: remove default case in get_limit_pwm
All cases are currently handled, and this is something people should
probably think about if they're introducing another case!
2019-12-24 11:50:03 +11:00
Oliver Walters 431b07bba0 SRV_Channel: added support for Piccolo CAN ESCs 2019-12-22 09:48:40 +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
Peter Barker 3521117817 SRV_Channel: remove old unused reversible-throttle concept 2019-11-26 10:15:05 +11:00
Henry Wurzburg 78e51ac03f SRV_Channel: remove winch from SERVOx_FUNTION list since its disabled 2019-11-05 11:30:43 +11:00
Andrew Tridgell e598c69a22 SRV_Channel: added singleton access for Lua 2019-11-04 13:01:59 +11:00
Andrew Tridgell 15f709e6ab SRV_Channel: added rate output channel docs 2019-10-25 17:11:56 +11:00
Andrew Tridgell 892f2d4256 SRV_Channel: added direct output of rate control on multicopters 2019-10-25 17:11:56 +11:00
Randy Mackay 6588c93e44 SRV_Channel: renamed EPM to Gripper in FUNCTION param docs 2019-10-15 09:11:06 +09:00
Tom Pittenger 52be3903c0 SRV_Channel: add neopixel as an output type 2019-09-10 13:03:28 +10:00
Tatsuya Yamaguchi f9547fa28e SRV_Channel: allow DO_SET_SERVO commands while rc pass-thru 2019-06-13 09:51:21 +09:00
Peter Barker 606614adb9 SRV_Channel: Bitmask is now a template 2019-04-16 15:12:07 +10:00
IamPete1 cbb871e7bb SRV_Channel: add global E-stop 2019-02-27 08:51:24 +09:00
Tom Pittenger 9e3cf3ad33 SRV_Channels: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Randy Mackay 368fd4b8db SRV_Channel: add ToshibaCAN 2019-01-18 17:30:28 +11:00
Francisco Ferreira f1463d6e6c
SRV_Channels: add support for KDECAN 2019-01-18 00:57:33 +00:00
Andrew Tridgell d72f6598e0 SRV_Channel: added RobotisServo protocol support 2018-12-22 08:13:14 +11:00
Tom Pittenger deea50731d SRV_Channel: fix values order 2018-11-26 11:28:22 +09: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
Michael du Breuil ac63e55c8d SRV_Channel: Add scripting outputs 2018-10-30 16:17:03 -07:00
ChrisBird a2c7d124cb SRV_Channel: Updated to include additional camera functions 2018-10-30 11:12:01 +11:00
Andrew Tridgell 6af709e617 SRV_Channel: fixed build warnings 2018-10-17 12:54:22 +11:00
IamPete1 7a8e7449fa SRV_Channel: add mailsail to servo function enum 2018-09-28 10:40:12 +09:00
Andrew Tridgell 4314d0ea12 SRV_Channel: handle reversed channels in limit PWMs 2018-09-13 08:15:02 +10:00
Michael du Breuil 8850e4b9a1 SRV_Channel: Remove the trim_all interface, constrain failsafes to non motor outputs 2018-08-23 13:19:08 +10:00
Francisco Ferreira 861e1a0a54
SRV_Channel: adapt to changes in AP_BoardConfig_CAN 2018-08-12 13:35:03 +01: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
Tom Pittenger 1a15a2e749 SRV_Channel: move UAVCAN code from SRV to UAVCAN files 2018-05-25 13:53:17 +10:00
Eugene Shamaev 66438041ad SRV_Channels: helper func 2018-05-25 13:53:17 +10:00
Eugene Shamaev 938f19c154 SRV_Channel: move push_UAVCAN to private 2018-05-25 13:53:17 +10:00
Eugene Shamaev afce24e45d SRV_Channels: integration of UAVCAN Servos and ESCs 2018-05-25 13:53:17 +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
ChristopherOlson c39a802655 SRV_Channel:Servo Library - set allowable min value to 500 pwm uS
Mostly for helicopter and airplane that may be using 760uS centered servos
2018-03-24 09:52:28 +09:00
Andrew Tridgell c0c4021605 SRV_Channels: fix for replay 2018-01-15 11:46:02 +11:00
Andrew Tridgell 1c503ee459 SRV_Channel: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Andrew Tridgell 051f30990c SRV_channel: fixed doc names of VOLZ and SBUS
thanks to Mark for noticing
2017-12-09 08:08:00 +11:00
Mark Whitehorn cca251c135 SRV_Channel: support SBusOut 2017-11-30 10:20:04 +11:00
Guy Tzoler 7f68be9bdf SRV_Channel: adding Volz Support 2017-11-21 14:10:54 +11:00
Randy Mackay 07e2853b8e SRV_Channel: function definition for winch 2017-10-27 09:20:38 +09:00
Andrew Tridgell 381e2fd69a SRV_Channel: added get_motor_function()
for correct handling of motors 8 and above
2017-10-25 11:39:11 +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 1f1b4241c3 SRV_Channel: added get/set for reversed and function
these are needed in plane for auto-conversion of old elevon code
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
Randy Mackay 298eaaeb3e SRV_Channels: rename SERVO_DEF_RATE to SERVO_RATE 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
Eugene Shamaev ec8aa2e23f SRV_Channel: move of CAN bitmasks into AP_UAVCAN 2017-07-03 11:44:32 +01:00
Andrew Tridgell 1d41dc034d SRV_Channel: deprecate aileron_with_input and elevator_with_input 2017-07-03 11:17:42 +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 9cb672e85e SRV_Channel: added doc values for dspoilers
and fix missing Motor9 to Motor12 values
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
Andrew Tridgell bc8c13d053 SRV_Channel: cope with large time jumps in slew rate limiter 2017-06-20 20:53:44 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 65cca6ae87 SRV_Channel: Improve the PWM parameters descriptions 2017-06-06 11:06:26 +10:00
Randy Mackay 544d6aa8a0 SRV_Channel: define aux functions for motors 9 to 12 2017-05-27 14:21:13 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 5e938c8cc0 SRV_Channel: Use SI units conventions in parameter units
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
2017-05-17 18:07:25 +10:00
Andrew Tridgell 2168222d4b SRV_Channel: added throttle_boot output function 2017-05-08 11:02:55 +10:00
Pierre Kancir 67e79a30e8 SRV_Channel: limit pwm_from_angle return to +/-high_out 2017-05-04 21:12:15 +10:00
Andrew Tridgell 84114d067a SRV_Channels: added SRV_Channels::enable_by_mask() 2017-05-01 14:32:18 +10:00
Andrew Tridgell 61fbaf0db7 SRV_Channel: added elevon and vtail functions
these allow for trimming and limit setting per channel, plus allow for
more than one set of elevon or vtail
2017-04-24 16:26:08 +10:00
Andrew Tridgell ce87bb7e39 SRV_Channel: added set_output_pwm_chan() 2017-04-18 08:41:24 +10:00
Andrew Tridgell 1db3b31686 SRV_Channel: added set_rc_frequency
this allows for setting RC output rate of named channel types
2017-04-11 17:34:40 +10:00
Andrew Tridgell 37301f67a0 SRV_Channel: added left and right motor tilt controls 2017-04-11 17:34:40 +10:00
Eugene Shamaev c43d91b92e SRV_Channel: support for servo and ESC commands to be send via UAVCAN 2017-04-10 22:38:12 +01:00
Andrew Tridgell 2d603c1cba SRV_Channel: fixed reversing on servo gimbals 2017-03-23 11:02:07 +09:00
Pierre Kancir bd4880b231 SRV_Channel: correct typo 2017-03-16 19:35:58 +00:00
Randy Mackay 36bcabb4e4 SRV_Channel: add constraint to move_servo 2017-02-28 19:29:00 +11:00