Peter Barker
102543684e
AP_Rally: add support for AP_Logger into AP_Periph
4 years ago
Peter Barker
d390126b93
AP_Rally: rename APMrover2 to Rover
5 years ago
Peter Barker
8911e67900
AP_Rally: adjust to allow for uploading via the mission item protocol
...
AP_Rally: add a set_rally_total method
Rally: remove restriction of only setting rally points below the param count
Rally: implement truncate/append interface
6 years ago
Peter Barker
ddfccf1e67
AP_Rally: correct math conversion problems
...
If the rally point storage size got *large* you'd end up with integer
overflow problems here.
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
00a80f3a1a
AP_Rally: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Peter Barker
2039fadfb7
AP_Rally: do not take reference to AHRS in constructor
6 years ago
Peter Barker
e06d9e65b2
AP_Rally: use AP::rally() to get singleton
6 years ago
Peter Barker
542aa4c9e0
AP_Rally: log any changes or additions to rally points
6 years ago
Peter Barker
1f5727c0b2
AP_Rally: adjust for location flags being moved out of union
6 years ago
Michael du Breuil
36cc66f0f3
AP_Rally: Move handling of home out of find_nearest_rally_point
6 years ago
Michael du Breuil
0d369929cb
AP_Rally: Create singleton
6 years ago
Raouf
90a27520e9
AP_Rally: rover includes home by default
7 years ago
Michael du Breuil
37df0c20eb
AP_Rally: Remove stale comment, and unneded define check
7 years ago
Andrew Tridgell
7122cae589
AP_Rally: 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
Lucas De Marchi
2f2abc2924
AP_Rally: add static create method
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
a1de89a812
AP_Rally: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
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
Francisco Ferreira
ef28be9ce8
AP_Rally: add is_valid method
...
method will be used in Copter to check if a rally point is inside fence
9 years ago
Lucas De Marchi
f908dffbeb
AP_Rally: replace header guard with pragma once
9 years ago
Caio Marcelo de Oliveira Filho
5344d95ef5
AP_Rally: use millis/micros/panic functions
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Gustavo Jose de Sousa
6dd38079d6
AP_Rally: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Randy Mackay
136853a750
Rally: rename RALLY_HOME_INC param to INCL_HOME
...
Also default include-home to 1 only for copter
Also minor formatting and comment changes
10 years ago
KiwiHC16
e0e2ed519c
Rally: add RALLY_HOME_INC param to use Home as a Rally point
10 years ago
Tom Pittenger
5f49b79d2f
Rally: fix compile warnings re float constants
10 years ago
Randy Mackay
f41d7ddaee
Rally: reduce distance limit to 300m for copter
...
This reduces the chance that a forgotten rally point will cause the
vehicle to RTL to a distant location because instead it will RTL to
home.
10 years ago
Randy Mackay
0c4ee422a4
Rally: fix comment to clarify altitudes are absolute
11 years ago
Andrew Tridgell
7cbb326405
AP_Rally: convert to using StorageManager
11 years ago
Andrew Tridgell
88bc1fb4d3
AP_Rally: fixed build for non-standard vehicle types
11 years ago
Andrew Tridgell
723aa7e336
AP_Rally: added last_change_time_ms() call
11 years ago
Andrew Tridgell
a295760e56
AP_Rally: fixed indentation
...
previous indentation confused emacs24
11 years ago
Michael Day
96173bfb8a
AP_Rally: Added one getter method and made a utility method public.
11 years ago
Randy Mackay
7011ab40c2
Rally: define RALLY_WP_SIZE and RallyLocation
11 years ago
Michael Day
a2aab2ab5e
AP_Rally: Minor fixes to AP_Rally after initial testing
...
- If a Rally point is being used, always respect the altitude set by the
user (don't take the max of that and the home point altitude).
- No need for constructor to pass in size of RallyLocation struct
11 years ago
Andrew Chapman
5825bac410
AP_Rally library
11 years ago