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
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
Andrew Tridgell
a26d19b57c
Copter: fill in flight mode in AP_Notify flags
...
needed for AP_Radio
7 years ago
Peter Barker
d1201e4776
Copter: tidy zero_throttle_and_relax (NFC)
7 years ago
Peter Barker
41dc8554c0
Copter: pull out a zero_throttle_and_relax function
7 years ago
Peter Barker
bf5f51a616
Copter: factor out takeoff_trigger from althold, sport and loiter
7 years ago
Peter Barker
d09b0696db
Copter: correct checking of heli mode change
...
init() may have changed all sorts of things about the
vehicle - wp navigation, position controllers, attitude controllers...
Do the heli check before doing any of that so we don't change state and
then fail to change mode
7 years ago
Randy Mackay
7504237fbb
Copter: rename flight_mode.cpp to mode.cpp
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
7 years ago
Randy Mackay
06fbe8f3a7
Copter: rename FlightMode class to Mode
...
also remove unused print_FlightMode method
7 years ago
Randy Mackay
6e9de7e609
Copter: flight_mode formatting 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
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
Peter Barker
7b637334f4
Copter: eliminate mode_has_manual_throttle
7 years ago
Peter Barker
4fd61ed6dc
Copter: make exit_mode take FlightMode objects as arguments
7 years ago
Peter Barker
83d0a71e10
Copter: FlightMode - simplify flight mode initialization
7 years ago
Peter Barker
ef1489e87a
Copter: eliminate mode_requires_gps
7 years ago
Peter Barker
a4859e13c1
Copter: eliminate mode_allows_arming
7 years ago
Peter Barker
9c60c1de58
Copter: FlightMode - convert SMARTRTL flight mode
7 years ago
Peter Barker
b0e34bd307
Copter: FlightMode - convert GUIDED_NOGPS flight mode
7 years ago
Peter Barker
cf423ce681
Copter: FlightMode - convert THROW flight mode
7 years ago
Peter Barker
37c706c24e
Copter: FlightMode - convert AVOID_ADSB flight mode
7 years ago
Peter Barker
51cd143012
Copter: FlightMode - convert BRAKE flight mode
7 years ago
Peter Barker
cafce01357
Copter: FlightMode - convert POSHOLD flight mode
7 years ago
Peter Barker
67063d6b1e
Copter: FlightMode - convert AUTOTUNE flight mode
7 years ago
Peter Barker
018c70d224
Copter: FlightMode - convert FLIP flight mode
7 years ago
Peter Barker
5e3e831152
Copter: FlightMode - convert SPORT flight mode
7 years ago
Peter Barker
6a38664ff4
Copter: FlightMode - convert DRIFT flight mode
7 years ago
Peter Barker
682f3c0e7e
Copter: FlightMode - convert RTL flight mode
7 years ago
Peter Barker
3b1ca99b95
Copter: FlightMode - convert LAND flight mode
7 years ago
Peter Barker
2db09ba0f7
Copter: FlightMode - convert GUIDED flight mode
7 years ago
Peter Barker
f2495b2d08
Copter: FlightMode - convert LOITER flight mode
7 years ago
Peter Barker
871ba5630f
Copter: FlightMode - convert CIRCLE flight mode
7 years ago
Peter Barker
e2b70c3a0a
Copter: FlightMode - convert AUTO flight mode
7 years ago
Peter Barker
a95a35c134
Copter: FlightMode - convert STABILIZE flight mode
7 years ago
Peter Barker
79c06974b7
Copter: FlightMode - convert ALT_HOLD flight mode
7 years ago
Peter Barker
d74f0c72da
Copter: FlightMode - convert ACRO flight mode
7 years ago
Peter Barker
527a536b78
Copter: FlightMode - remove function parameters
...
Use current control_mode in place of parameters
Once conversion is complete these functions will disappear
7 years ago
Peter Barker
99a22a263d
Copter: a FlightMode base class
7 years ago
André Kjellstrup
e7a1ceca4c
Copter: Option to trig by distance only when in AUTO mode
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
squilter
4b57a4a231
Copter: rename SafeRTL to SmartRTL
8 years ago
Randy Mackay
8df042f00c
Copter: complete addition of SafeRTL flight mode
8 years ago
squilter
ba0e08552f
Copter: add SafeRTL flight mode
8 years ago
Peter Barker
c6b9c84d1f
Copter: remove CLI
8 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
murata
8f926bd177
Copter: Unify from print or println to printf.
8 years ago
Randy Mackay
26919b4ab6
Copter: send flight mode string to Notify
8 years ago
Randy Mackay
af514eb101
Copter: remove some comments
8 years ago