Commit Graph

87 Commits

Author SHA1 Message Date
Andy Piper 07df203d19 Sub: make mount/gimbal inclusion configurable per-board 2020-08-04 09:18:14 +10:00
Willian Galvani 824816ddcb Sub: send messages to GCS when toggling roll/pitch control 2020-03-30 11:19:45 -07:00
Willian Galvani ba415c99fe Sub: send Roll/Pitch Toggle flag 2020-03-30 11:19:45 -07:00
Peter Barker 4d0c61970d ArduSub: log disarm method 2020-02-22 12:16:29 +11:00
Willian Galvani 741c467f03 Sub: do not initialize rc channels 6 and higher 2019-12-03 13:13:28 +08:00
Michael du Breuil 3f94f0d517 Sub: Support new AP_Vehicle::set_mode 2019-10-25 08:48:22 +08:00
Peter Barker c0052a5e71 Sub: move many members up to base class 2019-10-08 11:26:04 +11:00
Willian Galvani 9c6a63b55b sub: fixup joystick changes according to review
https://github.com/ArduPilot/ardupilot/pull/11861
2019-09-27 13:20:20 -07:00
Justin ee65aa2993 joystick: addressed issue9801. Upon engaging input hold, the controller will not read new directional inputs until input hold is disabled or the conrols are returned to their neutral position. 2019-09-27 13:20:20 -07:00
Peter Barker 8566a17a1d Sub: move arming-related functionality into parent classes
Logging moves up
arming via mavlink moves up
arming via switch moves up

arming switch may be forced off using BRD parameter
2019-05-30 07:37:30 +09:00
Peter Barker c48042424b Sub: use enum class for ArmingMethod and ArmingRequired 2019-03-12 19:48:14 +11:00
Peter Barker 3cfdcb1f2c ArduSub: use ArmingMethod enumeration 2018-07-03 15:16:38 +10:00
Michael du Breuil c642d1ed74 Sub: Rework to support override changes 2018-06-05 09:51:09 +10:00
Michael du Breuil 3927fb3107 Sub: Remove the usage of RC_Channels::set_overrides() 2018-05-11 12:13:39 +01:00
Peter Barker 0a0e11ba21 Sub: correct compilation when features disabled
Gripper
Mount
2018-05-10 17:55:13 +09:00
Michael du Breuil 9f673c2746 Sub: Use RC_Channels instead of hal.rcin 2018-04-11 21:47:07 +01:00
Patrick José Pereira aafede65f7 Sub: Add camera pan functionality
Fix bluerobotics/ardusub#134

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-02-21 10:52:24 -08:00
Patrick José Pereira 1196019b53 Sub: Correct joystick transform_manual_control_to_rc_override
Correct override channel number

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-02-21 09:03:42 -08:00
Jacob Walser 08298fced6 Sub: clear roll/pitch trim when setting neutral controls 2018-02-13 11:41:37 -05:00
dheideman b94ed3aecd Sub: Adjust roll/pitch joystick button logic 2018-02-13 11:41:36 -05:00
dheideman 8b0b96d56e Sub: Add servo toggle button function 2017-12-28 14:14:47 -05:00
dheideman 8fec2cbea3 Sub: Add momentary servo button function 2017-12-28 14:14:47 -05:00
Daniel Heideman 963d6a7739 Sub: Add momentary relay button function 2017-12-28 14:14:47 -05:00
dheideman 99f63d63e8 Sub: Add joystick button functions for relays 3 & 4 2017-10-27 12:14:41 -04:00
Jacob Walser eabc608b2e Sub: cleanup unused variable 2017-10-26 23:59:34 -04:00
Jacob Walser 1998cf93d2 Sub: JS_LIGHTS_STEP -> JS_LIGHTS_STEPS 2017-10-26 15:45:57 -04:00
Jacob Walser fb2e87032d Sub: use configured rc input range for lights input instead of hard coded values 2017-10-26 14:24:15 -04:00
dheideman 4e1c7fff37 Sub: Ignore input hold button if disarmed 2017-10-26 10:52:53 -04:00
dheideman 69be1725b6 Sub: Disable input hold on disarm 2017-10-26 10:52:53 -04:00
Jacob Walser 15658f1526 Sub: rework camera tilt input and slew limiting 2017-10-26 10:44:23 -04:00
Jacob Walser e8326ef120 Sub: remove manual control button debounce timer
This was a really long time for a debounce, and
this code belongs to the program actually polling for input.
2017-10-26 10:44:23 -04:00
dheideman 4ed02c3c94 Sub: Change input hold announcements for enable/disable 2017-10-20 16:15:47 -04:00
Jacob Walser b4ab0e2c6d Sub: Increase threshold for input hold engaged flag
Also clear input hold offsets when they are below this threshold
2017-10-20 16:03:49 -04:00
Jacob Walser a8aa005e18 Sub: Bugfix forward channel not neutralized appropriately 2017-08-29 08:10:05 -04:00
Jacob Walser 4449a46f5b Sub: input_hold_toggle -> input_hold_set 2017-08-29 08:10:05 -04:00
Jacob Walser 0bd5d6ca18 Sub: send useful information to GCS 2017-08-23 13:40:52 +01:00
Peter Barker 279072cf25 Sub: use send_text method on the GCS singleton 2017-07-09 17:17:29 -04:00
Jacob Walser e92dbad358 Sub: Fixup rcin initialization 2017-04-16 18:22:08 -04:00
Jacob Walser 05b19cbb7d Sub: Correct default flight mode button functions to match suggested
setup
2017-04-16 15:48:35 -04:00
Jacob Walser b7de1eb88a Sub: failsafe.manual_control -> failsafe.pilot_input
reset pilot input failsafe timer when RC_CHANNELS_OVERRIDE is received
2017-04-16 14:25:13 -04:00
Jacob Walser f2d9f1585e Sub: Shift forward/lateral input channels up one to remove old ch5 gap 2017-04-05 13:29:06 -04:00
Jacob Walser d629d4ba9e Sub: Change mode button function implementation 2017-04-05 13:29:06 -04:00
Jacob Walser e3d6d4bcbe Sub: Implement JSButton function to toggle between forward/lateral input
and roll/pitch input
2017-03-28 16:05:08 -04:00
Jacob Walser 5f82984d7e Sub: Implement servo min/max button functions 2017-03-28 14:54:23 -04:00
Jacob Walser 030af45b34 Sub: Implement servo control button functions 2017-03-28 14:54:23 -04:00
Jacob Walser c1959952b3 Sub: Bug fix for camera_tilt_smooth() conflict with RC_CHANNELS_OVERRIDE 2017-03-10 15:46:30 +11:00
Jacob Walser b4be9682df Sub: Add explicit cast to supress warnings 2017-02-22 11:25:18 -08:00
Jacob Walser 8c67c16664 Sub: Implement relay joystick button functions 2017-02-22 14:42:23 +00:00
Jacob Walser 4112fd1316 Sub: Remove mode header 2017-02-21 11:26:14 +11:00
Jacob Walser 5233b25910 Sub: Format all C++ with Tools/CodeStyle/astylerc 2017-02-21 11:26:14 +11:00