Dr.-Ing. Amilcar Do Carmo Lucas
137de0fea5
Copter: conditionaly include more header files
...
this should help catch missing macros
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
002494c048
Copter: Obey CAMERA == DISABLED
7 years ago
Peter Barker
730adc3f7c
Copter: eliminate perf_update scheduler table shim
7 years ago
Peter Barker
bfc373aeff
Copter: move logging of PM messages to AP_Scheduler
7 years ago
Peter Barker
80a3d63264
Copter: use AP_Scheduler's loop() function
7 years ago
Peter Barker
7f69c5d26d
Copter: use scheduler ticks in place of mainloop_count
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
40d74584ac
Copter: remove shims used in scheduler
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
Andrew Tridgell
15166eff2e
Copter: enable temperature calibration library
7 years ago
Michael du Breuil
69da4041ac
Copter: Move logging battery logging code to AP_BattMonitor
7 years ago
Pierre Kancir
10e6fe43dd
Copter: Add a switch option to enable/disable RC_Override
7 years ago
Randy Mackay
6546ccbb3f
Copter: velocity pi moved to position control library
7 years ago
Dylan Herman
20fe5bb98f
Copter: add SmartRTL failsafe action
...
Adds SmartRTL or RTL and SmartRTL or Land failsafe options for batt, throttle, and GCS failsafes
7 years ago
Peter Barker
dda38d65eb
Copter: AP_AHRS no longer requires GPS in constructor
7 years ago
Randy Mackay
2c0df87585
Copter: Copter.h method reordering
7 years ago
Peter Barker
6c82f7671d
Copter: move all commands logic into AUTO flightmode
7 years ago
Andrew Tridgell
8ab0ac8a16
Copter: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Peter Barker
377466ddda
Copter: fence no longer requires AP_InertialNav
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
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
5d33cf08e1
Copter: eliminate calc_home_distance_and_bearing
...
Calling update_simple_mode_bearing calls get-heading
rather than the other way around
This will have the advantage of not calculating home bearing
when we stop calling update_simple_mode_bearing unnecesarily
7 years ago
khancyr
b44ba29a05
AC_Avoidance: replace AP_InertialNav by AHRS
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
477ae8f7be
Copter: pass heli_flags into flightmode constructor
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