Peter Barker
11aeec6dd1
Copter: factor out auto_takeoff_run from auto and guided
...
This code was identical.
7 years ago
Peter Barker
ff17c78c67
Copter: create Copter::Mode::_TakeOff subobject from takeoff_state
7 years ago
Peter Barker
7883582c65
Copter: move takeoff state into Mode class
7 years ago
Peter Barker
597e876953
Copter: clean up do_user_takeoff
7 years ago
Peter Barker
cff1969a29
Copter: make do_user_takeoff a member of Mode
7 years ago
Peter Barker
cb26ff64b3
Copter: current_mode_has_user_takeoff -> Mode::has_user_takeoff
7 years ago
Pierre Kancir
2d5cbd2cf8
ArduCopter: report crosstrack_error
7 years ago
Peter Barker
7c8583d51d
Copter: implement sending of position_target_global_int
7 years ago
Pierre Kancir
3be6c0e26b
ArduCopter : clean unused definitions
7 years ago
Peter Barker
948b90ed97
Copter: rename roi_WP to just roi
...
A Vector3f is not a waypoint.
This should really be "Point Of Interest" rather than "Region Of
Interest"
7 years ago
Peter Barker
ba8b3e2415
Copter: create an AutoYaw helper object to hold auto-yaw state
7 years ago
Peter Barker
80549a479e
Copter: move throw logging into ModeThrow
7 years ago
Leonard Hall
83fac326a4
Copter: autotune check for vel overshoot in angle P
...
this change reduces the chance of over tuned angle P
7 years ago
Randy Mackay
59e4749fd0
Copter: integrate AC_Loiter
...
includes param conversion
7 years ago
Ebin
1ff4019ddf
ArduCopter: moved landing control fns from Copter to Mode
...
land_run_horizontal_control(),land_run_vertical_control(),get_alt_above_ground() moved to Mode
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
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
Dr.-Ing. Amilcar Do Carmo Lucas
b27c00dc5f
Copter: add option to disable ACRO mode
7 years ago
Randy Mackay
af207caa1f
Copter: move get_pilot_desired_lean_angles higher in cpp
...
this makes the definition in the .h and implementation in .cpp files appear in the same order
7 years ago
Ebin
20995b909f
Copter: Moved get_pilot_desired_lean_angles to mode.cpp
7 years ago
Peter Barker
af56826107
Copter: follow mode fixups
...
add follow to FLTMODEx param descriptions
remove follow's set_velocity method
10hz logging of desired velocity in follow mode
follow mode uses pos error P gain
add send-debug-via-mavlink option
don't enter follow if follow lib is disabled
follow debug slowed to 1hz
disable follow on min-features builds
7 years ago
Randy Mackay
6ee101ca98
Copter: rename chase to follow
7 years ago
Randy Mackay
053983eb70
Copter: integrate AP_Follow into chase mode
7 years ago
Peter Barker
199455dc56
Copter: add chase mode
7 years ago
Peter Barker
eb9bbddcb7
Copter: add in_guided_mode mode callback
7 years ago
Peter Barker
06da2f50ce
Copter: correct compilation when logging is disabled
7 years ago
Peter Barker
e6ece4cf3d
Copter: correct use of parent class constructors (heli)
7 years ago
Andrew Tridgell
7938bd08bb
Copter: make flowhold mode conditional
...
reduces build size on px4-v2 by 4k
7 years ago
murata
c31c2a4cf1
Copter: optionalize the winch
7 years ago
Peter Barker
8f8917369c
Copter: correct use of parent class constructors
7 years ago
Peter Barker
5e55784707
Copter: remove unneeded and unwanted virtual keywords
7 years ago
Randy Mackay
4319e37f0c
Copter: non-functional FlowHold changes
...
class declaration moved to alphabetical position in mode.h
parameter descriptions include FlowHow at beginning to help distinguished from optical flow parameters
resolved compiler warnings
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
Andrew Tridgell
af4f0c29ba
Copter: enable TMODE (ToyMode) support
...
this is for the skyviper button based transmitter control
7 years ago
Andrew Tridgell
f442b91ea5
Copter: added FLOWHOLD flight mode
...
This flight mode allows for position hold with optical flow without
needing a rangefinder for height. It can estimate its height from the
flow data and IMU
7 years ago
Peter Barker
a97301c0f2
Copter: do not allow arming in RTL
7 years ago
Peter Barker
41dc8554c0
Copter: pull out a zero_throttle_and_relax function
7 years ago
Peter Barker
d9235d3d41
Copter: make landing_gear_should_be_deployed a base-class method
7 years ago
Peter Barker
bf5f51a616
Copter: factor out takeoff_trigger from althold, sport and loiter
7 years ago
Peter Barker
6c82f7671d
Copter: move all commands logic into AUTO flightmode
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
2e71a641c3
Copter: FlightMode allow_arming format changes
...
non-functional change
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
7494eb2e77
Copter: alphabetise flight mode header file
7 years ago
Randy Mackay
8870897847
Copter: FlightMode objects use lower case
7 years ago
Randy Mackay
20d7216179
Copter: remove comments
...
non-functional change
7 years ago
Peter Barker
103e2cc711
Copter: calculate wp bearing and distance on demand
...
Move responsibility for calculating wp bearing/distance
into the FlightMode object doing the navigation
Calculating these variables was being done at 50Hz where they
were used at 10Hz max.
7 years ago
Peter Barker
4ae2be55aa
Copter: fix up autotune namespacing
...
This moves static variables into the autotune flightmode object.
It also adjusts namespacing on everything to take advantage of
having everything encapsulated in the AutoTune object
7 years ago