Lucas De Marchi
1263e20a0d
ArduCopter: use static method to construct AC_InputManager
2017-09-26 03:01:21 +01:00
Lucas De Marchi
e21e02cfdb
ArduCopter: use static method to construct AC_PrecLand
2017-09-26 03:01:21 +01:00
Lucas De Marchi
cf6ea9642e
global: use static method to construct AP_Terrain
2017-09-26 03:01:21 +01:00
Lucas De Marchi
31db77e47b
global: use static method to construct AP_Parachute
2017-09-26 03:01:21 +01:00
Lucas De Marchi
57bbb2e1d9
ArduCopter: use static method to construct AC_Sprayer
2017-09-26 03:01:21 +01:00
Lucas De Marchi
4f42facefc
global: use static method to construct AC_Avoid
2017-09-26 03:01:21 +01:00
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
2017-09-26 03:01:21 +01:00
Lucas De Marchi
c6eb48009b
global: use static method to construct AC_Fence
2017-09-26 03:01:21 +01:00
Lucas De Marchi
18aa88b329
global: use static method to construct AP_Mount
2017-09-26 03:01:21 +01:00
Lucas De Marchi
c3647f0185
global: use static method to construct AP_Camera
2017-09-26 03:01:21 +01:00
Lucas De Marchi
cc53e7bc4b
global: use static method to construct AP_ServoRelayEvents
2017-09-26 03:01:21 +01:00
Lucas De Marchi
9ce6019138
global: use static method to construct AP_Frsky_Telem
2017-09-26 03:01:21 +01:00
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.
2017-09-26 03:01:21 +01:00
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
2017-09-26 03:01:21 +01:00
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.
2017-09-23 21:37:45 -07:00
Randy Mackay
44a436642b
Copter: complete rename to SmartRTL
...
Also fix parameter description for CH7_OPT
2017-09-15 08:58:14 +09:00
Peter Barker
6b5fd5fbdd
Copter: move gcs_out_of_time into GCS object
2017-09-12 18:28:07 +01:00
squilter
4b57a4a231
Copter: rename SafeRTL to SmartRTL
2017-09-09 14:05:41 +09:00
squilter
ba0e08552f
Copter: add SafeRTL flight mode
2017-09-09 14:05:41 +09:00
Peter Barker
470e790117
Copter: add constant structure holding firmware version
2017-08-30 15:54:46 +01:00
Peter Barker
89e6e70235
Copter: remove MAIN_LOOP_RATE in favour of parameter value
2017-08-29 08:41:07 +09:00
Peter Barker
cdf9ebcb39
Copter: camera is responsible for taking distance-based-images and logging
2017-07-28 14:27:53 +01:00
Peter Barker
cfbde937c6
Copter: move should_log check of log bitmask into DataFlash
2017-06-29 15:26:27 +01:00
Shingo Matsuura
0800c6be52
Copter: add beacon object to avoidance object
2017-06-14 16:07:32 +09:00
Peter Barker
1d70a337dd
Copter: remove unused desired_climb_rate variable
2017-03-09 19:52:58 +11:00
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
2017-01-12 17:39:37 +11:00
Andrew Tridgell
5a87ae3f01
Copter: use new SRV_Channels API
2017-01-12 17:39:37 +11:00
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
2017-01-03 10:44:03 +09:00
Pierre Kancir
3fc17a5ed5
Copter: avoid must be initialized after fence as it use it
2016-12-05 10:59:45 -08:00
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.
2016-10-24 09:42:01 -02:00
Randy Mackay
0aab175051
Copter: move proximity to g2
2016-10-14 14:02:29 +09:00
Randy Mackay
bba7369e9a
Copter: pass AP_Proximity to AC_Avoid
2016-10-13 20:21:07 +09:00
Andrew Tridgell
0bcc9c4cb0
Copter: fix for AP_FrSky_Telem API change
2016-08-25 10:16:19 +10:00
floaledm
c0bd21d9f2
Copter: compatibility with revised AP_Frsky_Telem class
2016-08-25 10:16:18 +10:00
Randy Mackay
2647bed484
Copter: guided mode uses modified check_destination_within_fence
2016-07-04 18:25:03 +09:00
Daniel Ricketts
87be8daf0e
Copter: integrate AC_Avoidance library
2016-06-22 11:38:15 +09:00
Leonard Hall
e9d8a28ec0
Copter: AP_Motor's throttle_hover replaces throttle_average
2016-06-18 11:55:49 +09:00
Randy Mackay
5ac13c0355
Copter: move rangefinder variables into structure
...
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
2016-05-21 10:36:53 +09:00
Randy Mackay
7689315ba2
Copter: rename sonar to rangefinder
2016-05-21 10:36:53 +09:00
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.
2016-05-06 13:11:28 -03:00
Allan Matthew
d6012c535e
Copter: remove unused dt passed to precland
2016-05-06 11:04:45 +09:00
Randy Mackay
5090e6f4fb
Copter: init G_Dt with MAIN_LOOP_SECONDS definition
2016-04-01 11:59:30 +09:00
Randy Mackay
bde498375c
Copter: remove attitude PIDs
...
These are now part of AC_AttitudeControl
2016-04-01 11:59:30 +09:00
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
2016-04-01 11:59:30 +09:00
Leonard Hall
6c40d6f774
Copter: remove single frame's servo objects
2016-04-01 11:59:30 +09:00
Leonard Hall
8d0a6765f1
Copter: removed unnecessary #define for motor declaration
2016-04-01 11:59:30 +09:00
Leonard Hall
44180e44df
Copter: remove coax servo objects
...
servos moved to AP_MotorsCoax class
2016-04-01 11:59:30 +09:00
Leonard Hall
a00a9601a4
Copter: AP_MotorsCoax now uses 4 servos
2016-04-01 11:59:30 +09:00
Jonathan Challinger
8965185587
Copter: add "high throttle cancels landing" option
2016-01-14 15:21:54 +09:00
Jonathan Challinger
dcd16696a2
Copter: refactor RTL to compute full path on initialization
2016-01-07 17:22:31 +09:00