Commit Graph

23 Commits

Author SHA1 Message Date
Peter Barker 7c14a9dd7b AC_Sprayer: use ahrs singleton
Also remove some unneeded initialisations
2018-04-12 14:23:33 +09:00
Randy Mackay d9fe7b7105 AC_Sprayer: formatting fixes
non-functional change
2018-04-11 09:41:33 +09:00
Pierre Kancir c2e546285c AC_Sprayer: replace AP_InertialNav with AHRS 2018-04-11 09:41:33 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 087b5b89f0 AC_Sprayer: 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
Andrew Tridgell 5817cc400c AC_Sprayer: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
Andrew Tridgell 1ac5776b8b AC_Sprayer: adapt to new RC_Channel API 2017-01-12 17:39:37 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas 8419045aea Spell in comments 2017-01-06 10:57:39 -08:00
Peter Barker 0cea47ae54 AC_Sprayer: disentangle ENABLED from permission-to-run 2016-10-29 15:02:52 +09:00
Peter Barker bae89d43fa AC_Sprayer: correct HOWTO, minor cleanups (NFC) 2016-10-29 15:02:50 +09: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
Tom Pittenger dd5ed7e2e0 AC_Sprayer: set param "Enable" to be FLAG_ENABLE 2016-08-04 11:30:03 -07:00
dgrat 41661f815f AP_Math: Replace the pythagorous* functions with a variadic template
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
2016-05-10 11:41:26 -03:00
Lucas De Marchi 2591261af6 Global: rename min and max macros to uppercase
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.

Changes generated with:

	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
2015-12-01 16:28:09 -02:00
Caio Marcelo de Oliveira Filho 70d0ea9151 AC_Sprayer: use millis/micros/panic functions 2015-11-20 12:28: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 99fd585a54 AC_Sprayer: 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:28:41 +10:00
Randy Mackay 1bf0139162 AC_Sprayer: init flags
Resolves warning from Coverity
2015-06-08 14:46:35 +09:00
Randy Mackay 10588d6d36 AC_Sprayer: append f to floating point constants
Reduces some compiler warnings
2014-07-16 14:40:47 +09:00
Tobias c62f2e3d0c AC_Sprayer: replace unnecessary object with const ref 2013-10-27 13:40:44 +09:00
Tobias e2c3ea0f56 AC_Sprayer: add consts, update comments
* removed some comments that were left over from the classes this class
was copypasta'ed from
2013-10-27 13:39:32 +09:00
Randy Mackay 5e7a6b3b98 Sprayer: add pump min rate and test
If pump is enabled while copter is disarmed it will spray as if
travelling at 1m/s
2013-09-11 17:04:58 +09:00
Randy Mackay c7464f635c AC_Sprayer: turn on/off the spinner with the pump 2013-08-05 21:12:28 +09:00
Randy Mackay e4ca7d2fdf AC_Sprayer: first implementation 2013-08-05 21:11:09 +09:00