Lucas De Marchi
31db77e47b
global: use static method to construct AP_Parachute
7 years ago
Lucas De Marchi
57bbb2e1d9
ArduCopter: use static method to construct AC_Sprayer
7 years ago
Lucas De Marchi
4f42facefc
global: use static method to construct AC_Avoid
7 years ago
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
7 years ago
Lucas De Marchi
c6eb48009b
global: use static method to construct AC_Fence
7 years ago
Lucas De Marchi
18aa88b329
global: use static method to construct AP_Mount
7 years ago
Lucas De Marchi
c3647f0185
global: use static method to construct AP_Camera
7 years ago
Lucas De Marchi
cc53e7bc4b
global: use static method to construct AP_ServoRelayEvents
7 years ago
Lucas De Marchi
9ce6019138
global: use static method to construct AP_Frsky_Telem
7 years ago
Lucas De Marchi
b36a5919f5
global: use static method to construct AP_Mission
...
This also move the initialization to be in the header for those that
weren't already to maintain consistency.
7 years ago
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
7 years ago
Lucas De Marchi
cd5b018d82
ArduCopter: move version to a static member
...
We should never include version.h or ap_version.h headers directly
on a header since this will trigger a complete rebuild of the
codebase when we commit to the repository. The ap_version.h header
is auto-generated containing information from the current commit.
If we include it in a header, every other file that ends up including
that header (directly or indirectly) will need to be rebuilt. No
ccache's cache beats having to do nothing when the header is just
not included.
version.h contains information that is kept on a struct inside
each vehicle. Rather than using the macros from each vehicle,
the getter should be preferred, which returns an AP_FWVersion
referente.
7 years ago
Randy Mackay
44a436642b
Copter: complete rename to SmartRTL
...
Also fix parameter description for CH7_OPT
8 years ago
Peter Barker
6b5fd5fbdd
Copter: move gcs_out_of_time into GCS object
8 years ago
squilter
4b57a4a231
Copter: rename SafeRTL to SmartRTL
8 years ago
squilter
ba0e08552f
Copter: add SafeRTL flight mode
8 years ago
Peter Barker
470e790117
Copter: add constant structure holding firmware version
8 years ago
Peter Barker
89e6e70235
Copter: remove MAIN_LOOP_RATE in favour of parameter value
8 years ago
Peter Barker
cdf9ebcb39
Copter: camera is responsible for taking distance-based-images and logging
8 years ago
Peter Barker
cfbde937c6
Copter: move should_log check of log bitmask into DataFlash
8 years ago
Shingo Matsuura
0800c6be52
Copter: add beacon object to avoidance object
8 years ago
Peter Barker
1d70a337dd
Copter: remove unused desired_climb_rate variable
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
Andrew Tridgell
5a87ae3f01
Copter: use new SRV_Channels API
8 years ago
Peter Barker
a233024e05
Copter: fix compilation when fence andd proximity are disabled
...
This adds AC_AVOID_ENABLED; avoidance must be disabled if either
of fence or proximity are disabled.
Parameter definitions have been reordered to avoid compiler warnings;
this make sthe numbering non-linear
8 years ago
Pierre Kancir
3fc17a5ed5
Copter: avoid must be initialized after fence as it use it
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
0aab175051
Copter: move proximity to g2
8 years ago
Randy Mackay
bba7369e9a
Copter: pass AP_Proximity to AC_Avoid
8 years ago
Andrew Tridgell
0bcc9c4cb0
Copter: fix for AP_FrSky_Telem API change
9 years ago
floaledm
c0bd21d9f2
Copter: compatibility with revised AP_Frsky_Telem class
9 years ago
Randy Mackay
2647bed484
Copter: guided mode uses modified check_destination_within_fence
9 years ago
Daniel Ricketts
87be8daf0e
Copter: integrate AC_Avoidance library
9 years ago
Leonard Hall
e9d8a28ec0
Copter: AP_Motor's throttle_hover replaces throttle_average
9 years ago
Randy Mackay
5ac13c0355
Copter: move rangefinder variables into structure
...
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
9 years ago
Randy Mackay
7689315ba2
Copter: rename sonar to rangefinder
9 years ago
Lucas De Marchi
352e103f1a
ArduCopter: use separate header for version macro
...
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.
Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
9 years ago
Allan Matthew
d6012c535e
Copter: remove unused dt passed to precland
9 years ago
Randy Mackay
5090e6f4fb
Copter: init G_Dt with MAIN_LOOP_SECONDS definition
9 years ago
Randy Mackay
bde498375c
Copter: remove attitude PIDs
...
These are now part of AC_AttitudeControl
9 years ago
Randy Mackay
1f37f5a0e7
Copter: remove tradheli swash, yaw and rsc servos
...
These are all created within the AP_MotorsSingle class now except for servo_rsc which was unused
9 years ago
Leonard Hall
6c40d6f774
Copter: remove single frame's servo objects
9 years ago
Leonard Hall
8d0a6765f1
Copter: removed unnecessary #define for motor declaration
9 years ago
Leonard Hall
44180e44df
Copter: remove coax servo objects
...
servos moved to AP_MotorsCoax class
9 years ago
Leonard Hall
a00a9601a4
Copter: AP_MotorsCoax now uses 4 servos
9 years ago
Jonathan Challinger
8965185587
Copter: add "high throttle cancels landing" option
9 years ago
Jonathan Challinger
dcd16696a2
Copter: refactor RTL to compute full path on initialization
9 years ago
Randy Mackay
1155b1f557
Copter: remove precision landing PI controller
...
This controller has been moved into the precision landing class
9 years ago
Andrew Tridgell
4dd8714880
Copter: changed to Hz based task table
9 years ago
Robert Lefebvre
f55effa562
Copter: remove unnecessary frame ifdef
9 years ago