bnsgeyer
160c992548
Copter: fix heli land detector and incoporate reset_I_smoothly
4 years ago
Leonard Hall
6dc8dd2960
Copter: Delay release of I term until take off
5 years ago
Peter Barker
b0428f0fe8
Copter: make surface_tracking a class, various functions methods
6 years ago
Leonard Hall
c56acb49d6
Copter: Add missing Loiter initialisation lines.
...
This command is missing to define the desired acceleration that loiter will initalise to.
loiter_nav->clear_pilot_desired_acceleration();
6 years ago
Leonard Hall
0e34d8b1ff
Copter: PosHold fix for low brake_rate
6 years ago
Peter Barker
676d75c391
Copter: correct namespacing of Copter modes
...
This makes us look like Rover and Plane in terms of namespacing for the
Mode classes, and removes a wart where we #include mode.h in the middle
of the Mode class.
This was done mechanically for the most part.
I've had to remove the convenience reference for ap as part of this.
6 years ago
Peter Barker
3c436b30f0
Copter: have takeoff.start() handle clearing i terms and setting land-complete
6 years ago
Peter Barker
37c07e1d89
Copter: use enum class for roll/pitch mode
...
This adds some type-safety and helps distinguish between the many
defines which are used within PosHold mode
Saves about 210 bytes of flash
6 years ago
Peter Barker
e28c6b9dc6
Copter: remove redundant poshold_ prefix on PosHold methods
6 years ago
Peter Barker
f57a9f11cc
Copter: move poshold state variables into mode object
...
This was simply moving the members from the poshold struct into the
class then mechanically removing poshold. from in front of the member
access.
6 years ago
Randy Mackay
b7d0e4ec10
Copter: remove surface tracking shim functions
6 years ago
Randy Mackay
33a57361bd
Copter: reduce args passed to get_surface_tracking_climb_rate
...
The same arguments are always passed in
6 years ago
Peter Barker
46a6f45e4a
Copter: adjust for desired spool state and spool state renames
6 years ago
Randy Mackay
d626ea66f1
Copter: poshold loses stray set-desired-spool-state
...
spool state is all handled higher up in the poshold state switch statement
6 years ago
Leonard Hall
593925567b
Copter: formatting fixes
6 years ago
Leonard Hall
38cc5a817f
Copter: consolidate mode state decisions
...
bnsgeyer and rmackay9 contributed to these changes
make_safe_shut_down waits for spool down before disarming
remove use of attitude_control::set_throttle_out_unstabilized to consolidate logic between multicopters and tradhelis
6 years ago
Patrick José Pereira
33764d6c3b
Copter: Fix typo
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
6 years ago
Peter Barker
fab2d59a1c
Copter: move check for position up
6 years ago
murata
8644f4d76e
Copter: Disable option code
...
Copter: Revert change
Copter: Change mistakes
6 years ago
Peter Barker
f0ea4af514
Copter: rename get_velocity_xy to get_speed_xy
6 years ago
Randy Mackay
50c5ad7076
Copter: TradHelis force spool up before takeoff
6 years ago
bnsgeyer
ca565675f2
Copter: Tradheli gets support for spool logic
6 years ago
Leonard Hall
2ddb3f6697
Copter: desired-ground-idle replaces spin-when-armed
6 years ago
Peter Barker
26ca75efae
Copter: make libraries get EKF control limits themselves
6 years ago
Michael du Breuil
7e1ed948f5
Copter: Cope with AC_PosControl renaming
6 years ago
Leonard Hall
17b61f72a3
Copter: Initialise desired acceleration before loiter init
6 years ago
Peter Barker
ff17c78c67
Copter: create Copter::Mode::_TakeOff subobject from takeoff_state
7 years ago
Peter Barker
4e3bbe9311
Copter: move sanity check for rangefinder alt to within protected func
...
get_surface_tracking_climb_rate can do an additional check....
7 years ago
Randy Mackay
59e4749fd0
Copter: integrate AC_Loiter
...
includes param conversion
7 years ago
Ebin
d8f56b3511
ArduCopter: changed signature for get_pilot_desired_lean_angles()
...
Removes first two redundant input parameters, makes fn non static, makes fn const
7 years ago
Randy Mackay
1035645f5c
Copter: poshold always resets loiter I term
7 years ago
Leonard Hall
93de23e7c4
Copter: get-pilot-desired-lean-angles accepts another angle-max
7 years ago
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
7 years ago
Andrew Tridgell
0ed75052f8
Copter: enable parameters inside mode objects
...
this adds FHLD_* parameters for FlowHold mode. It is a large patch as
it needs to disentagle the mode class to enable it to be used in
Parameters.h
7 years ago
Peter Barker
ab7a9c9073
Copter: use zero_throttle_and_relax_ac in poshold, drift and autotune
7 years ago
Randy Mackay
c3fbf2671c
Copter: rename control_xx.cpp files to mode_xx.cpp
7 years ago
Randy Mackay
06fbe8f3a7
Copter: rename FlightMode class to Mode
...
also remove unused print_FlightMode method
7 years ago
Randy Mackay
0ac708b5a0
Copter: remove ability to disable PosHold flight mode
...
This flight mode is stable and regularly used so it is unlikely that we ever want to disable it
7 years ago
Randy Mackay
8870897847
Copter: FlightMode objects use lower case
7 years ago
Peter Barker
cafce01357
Copter: FlightMode - convert POSHOLD flight mode
7 years ago
ChrisBird
caaeae3d0a
Copter: Separate max ascent and descent speeds
...
Added equivalent parameters to WPNAV_SPEED_UP and WPNAV_SPEED_DN
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).
Flight Modes impacted:
ALTHOLD
AUTOTUNE
CIRCLE
LOITER
POSHOLD
SPORT
TAKEOFF
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.
7 years ago
Andrew Tridgell
22bfec4d2a
Copter: fixed motor runup check for heli
...
for all auto-throttle modes we should not allow a mode change to the
mode if the motor runup is not complete.
This moves the code to the set_mode() so it applies to all modes
fixes issue #6956
7 years ago
Randy Mackay
62a4867cd4
Copter: use avoidance adjusted climb rate in all modes
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Randy Mackay
c846cc249d
Copter: fix heli pos-hold run-up-complete issue
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Randy Mackay
5894a54a16
Copter: althold uses current alt target if active
...
Previously we always reset the altitude target to the current altitude but this causes a jump if the vehicle is already in an alt-hold flight mode but has an altitude error
8 years ago
Randy Mackay
c3d71f733c
Copter: remove get_takeoff_trigger_throttle
...
get_pilot_desired_climbrate can be used instead.
9 years ago
Randy Mackay
cb5d3238cb
Copter: poshold provides throttle feedback from mid-stick when landed
9 years ago
Randy Mackay
5061b29031
Copter: poshold - fix call to relax_alt_hold_controller
9 years ago