Commit Graph

43 Commits

Author SHA1 Message Date
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker da2b530ce8 AP_Rally: tidy creation of Location from RallyLocation 2022-07-14 11:49:53 +10:00
Peter Barker d1f4e95b26 AP_Rally: clarify that rtl altitude is in cm amsl 2022-07-12 11:06:27 +10:00
Peter Barker a2a63e14b1 AP_Rally: tidy calculation of nearest rally/home 2022-07-12 11:06:27 +10:00
Peter Barker 6fafd04b2f AP_Rally: tidy includes 2022-05-03 09:14:58 +10:00
Andy Piper 0d9b677586 AP_Rally: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI 2021-10-26 11:42:12 +11:00
Gone4Dirt 9b7b9c351a AP_Rally: Add APM_BUILD_Heli 2021-09-29 19:55:48 +10:00
Siddharth Purohit 1ffc18006b AP_Rally: omit code that breaks build for herepro 2021-07-02 08:50:16 +10:00
Peter Barker 102543684e AP_Rally: add support for AP_Logger into AP_Periph 2021-06-08 09:57:55 +10:00
Peter Barker d390126b93 AP_Rally: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
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
2019-05-22 08:53:45 +10:00
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.
2019-04-23 09:43:26 +10:00
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
2019-02-28 11:44:09 +11:00
Peter Barker 2039fadfb7 AP_Rally: do not take reference to AHRS in constructor 2019-02-20 18:03:38 +11:00
Peter Barker e06d9e65b2 AP_Rally: use AP::rally() to get singleton 2019-02-12 13:08:03 +09:00
Peter Barker 542aa4c9e0 AP_Rally: log any changes or additions to rally points 2019-02-12 11:48:55 +11:00
Peter Barker 1f5727c0b2 AP_Rally: adjust for location flags being moved out of union 2019-01-16 11:45:29 +11:00
Michael du Breuil 36cc66f0f3 AP_Rally: Move handling of home out of find_nearest_rally_point 2019-01-08 10:39:50 +11:00
Michael du Breuil 0d369929cb AP_Rally: Create singleton 2019-01-08 10:39:50 +11:00
Raouf 90a27520e9 AP_Rally: rover includes home by default 2018-08-30 09:55:06 +09:00
Michael du Breuil 37df0c20eb AP_Rally: Remove stale comment, and unneded define check 2018-04-11 09:45:45 +09:00
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
2017-12-14 08:12:28 +11:00
Lucas De Marchi 2f2abc2924 AP_Rally: add static create method 2017-09-26 03:01:21 +01:00
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
2017-05-17 18:07:25 +10: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
Francisco Ferreira ef28be9ce8 AP_Rally: add is_valid method
method will be used in Copter to check if a rally point is inside fence
2016-07-22 09:00:13 +09:00
Lucas De Marchi f908dffbeb AP_Rally: replace header guard with pragma once 2016-03-16 18:40:42 +11:00
Caio Marcelo de Oliveira Filho 5344d95ef5 AP_Rally: use millis/micros/panic functions 2015-11-20 12:34:04 +09:00
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.
2015-10-30 14:35:16 +09:00
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.
2015-08-11 16:38:23 +10:00
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
2015-08-04 21:25:44 +09:00
KiwiHC16 e0e2ed519c Rally: add RALLY_HOME_INC param to use Home as a Rally point 2015-08-04 21:25:41 +09:00
Tom Pittenger 5f49b79d2f Rally: fix compile warnings re float constants 2015-04-24 14:04:08 +09:00
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.
2015-01-06 15:55:47 +09:00
Randy Mackay 0c4ee422a4 Rally: fix comment to clarify altitudes are absolute 2014-08-14 21:10:21 +09:00
Andrew Tridgell 7cbb326405 AP_Rally: convert to using StorageManager 2014-08-13 18:46:43 +10:00
Andrew Tridgell 88bc1fb4d3 AP_Rally: fixed build for non-standard vehicle types 2014-08-06 17:59:20 +10:00
Andrew Tridgell 723aa7e336 AP_Rally: added last_change_time_ms() call 2014-08-06 17:59:19 +10:00
Andrew Tridgell a295760e56 AP_Rally: fixed indentation
previous indentation confused emacs24
2014-05-08 11:01:52 +10:00
Michael Day 96173bfb8a AP_Rally: Added one getter method and made a utility method public. 2014-04-22 11:40:18 +10:00
Randy Mackay 7011ab40c2 Rally: define RALLY_WP_SIZE and RallyLocation 2014-04-19 15:00:25 +09:00
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
2014-04-19 09:16:02 +10:00
Andrew Chapman 5825bac410 AP_Rally library 2014-04-19 09:15:59 +10:00