Commit Graph

36 Commits

Author SHA1 Message Date
Clyde McQueen 0f7cfcb281 Sub: add SURFTRAK mode 2024-02-22 16:16:09 -03:00
Willian Galvani 622ddcf47a Sub: scale get_pilot_desired_climb_rate() deadzone and output with pilot gain 2023-11-09 10:19:19 -03:00
Iampete1 ed094ffc6b ArduSub: params always use set method 2022-08-03 13:43:48 +01:00
Iampete1 720117298d Sub: stop using custom pos controller 2022-07-05 16:00:03 -03:00
Josh Henderson bdac4a2416 Sub: INAV rename for neu & cm/cms 2021-11-30 10:08:07 +11:00
Josh Henderson 17243b5630 Sub: inav use _xy() 2021-11-30 10:08:07 +11:00
Josh Henderson 5391262900 ArduSub: get_bearing & get_horizontal_distance use Vector2f 2021-11-30 10:08:07 +11:00
Josh Henderson d6d9577f27 Sub: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Leonard Hall 4c3a5c0918 Sub: Fix before squash 2021-05-24 20:13:37 +10:00
Leonard Hall 266bd22df3 Sub: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Patrick José Pereira 678cbdfb4f ArduSub: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Patrick José Pereira 90601c80e9 Sub: Simplify some returns
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-29 15:51:30 -04:00
Patrick José Pereira 4de371743e Sub: Move from millis() to AP_HAL::millis()
AP_HAL::millis() is a more common style around the rest of the project

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-12 17:27:56 -04:00
Randy Mackay 01d1d41302 Sub: integrate attitude control inertial_frame_reset 2018-03-16 13:50:57 +09:00
Randy Mackay da17034a3d Sub: replace smoothing gain with AC_AttitudeControl::set_input_tc 2018-03-16 13:50:57 +09:00
ChrisBird 0fb679b2b2 Sub: Separate max ascent and descent speeds
This is to match a change made to Copter.

It might be relevant to sub in that users may wish to have asymmetrical descent and ascent rates.

New parameters named:
PILOT_SPEED_UP (technically renamed PILOT_VELZ_MAX)
PILOT_SPEED_DN

Removed parameter PILOT_VELZ_MAX (technically renamed to PILOT_SPEED_UP).

Modes impacted:
ALT_HOLD
CIRCLE
POSHOLD

Update a section in GUIDED mode but I don't think it is ever used but update just in case.

It will use the PILOT_SPEED_UP for ascending max velocity.  For down it will check if
it is 0, if so then it will PILOT_SPEED_UP instead, if non zero it will use PILOT_SPEED_DN.
This retains current behavior and gives the flexibility to change it if desired.

The above behavior is less of a concern for Sub but to keep it consistent its been implemented it the same way.
2017-12-28 15:16:08 -05:00
Dr.-Ing. Amilcar Do Carmo Lucas 9f6342a1d1 Sub: Move some common functions to AP_Math (NFC) 2017-12-05 08:54:49 +09: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 1990aa7829 Sub: Update stale references to Copter 2017-02-21 11:26:14 +11:00
Jacob Walser cb0cf2035d Sub: Refactor to fence.get_safe_alt_min() and fence.get_safe_alt_max() 2017-02-21 11:26:14 +11: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
Jacob Walser ed87bd9e59 Sub: fixes from rebase on ArduPilot master 2017-02-21 11:26:14 +11:00
Jacob Walser 852374ab4d Sub: Manual control failsafe 2017-02-21 11:26:14 +11:00
Jacob Walser 26fd201672 Sub: Let AC_PosControl handle z axis limiting at surface 2017-02-21 11:26:14 +11:00
Jacob Walser 4704faf60d Sub: Revert to 29f8ce95, prior to deadzone PR 2017-02-21 11:26:14 +11:00
Jacob Walser 0b0cda02cc Sub: add method to get throttle channel control_in, while applying
deadzone to center like angle type channels
2017-02-21 11:26:14 +11:00
Rustom Jehangir 26d0a922c1 Sub: Changes to match recent Copter updates. 2017-02-21 11:26:14 +11:00
Rustom Jehangir 1252f6c03e Sub: Repair build 2017-02-21 11:26:14 +11:00
Rustom Jehangir 7e7b7c9afb Sub: Add low pass filter (from Copter) 2017-02-21 11:26:14 +11:00
Rustom Jehangir 684bc249b6 Sub: Update to match upstream, part 1 2017-02-21 11:26:14 +11:00
jaxxzer 8ff479ca1e Sub: Enable altitude fences for sub 2017-02-21 11:26:14 +11:00
Rustom Jehangir de669c1d41 Sub: Change M_PI to match Copter. 2017-02-21 11:26:14 +11:00
Rustom Jehangir 6cf24c2770 Sub: Remove heli support from sub. 2017-02-21 11:26:14 +11:00
Rustom Jehangir 83ff3931b8 Sub: Refactor "Copter" to "Sub". 2017-02-21 11:26:14 +11:00
Rustom Jehangir 3da7c95e9b Sub: New vehicle type, derived from ArduCopter. 2017-02-21 11:26:14 +11:00