Lucas De Marchi
e770cf059d
APMRover2: initialize variable to fix build
...
Fix the following build error on clang:
../../APMrover2/test.cpp:164:4: fatal error: variable 'fail_test' is uninitialized when used here [-Wuninitialized]
fail_test++;
^~~~~~~~~
../../APMrover2/test.cpp:139:19: note: initialize the variable 'fail_test' to silence this warning
uint8_t fail_test;
^
9 years ago
Siddharth Bharat Purohit
53d3e7dc61
Rover: wire up accel calibrator for Rover
9 years ago
Andrew Tridgell
7daab1ee62
Rover: convert to Hz based task table
9 years ago
Jonathan Challinger
6c4f070685
Rover: reflect renamed function in AP_AHRS
9 years ago
Tom Pittenger
e6cf86801d
APMrover2: compiler warning - float to double promotion for print
9 years ago
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'
9 years ago
Lucas De Marchi
79230bc68d
APMrover2: fix passing AP_Float to printf
...
Call get() to return the contained float value.
10 years ago
Lucas De Marchi
b02661b478
APMrover2: fix wrong printf format for 32 bits
...
Heading is a 32 bits value, so use %d.
10 years ago
Lucas De Marchi
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
10 years ago
Lucas De Marchi
6f4904189b
Replace use of println_P() with println()
10 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.
10 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
10 years ago
Gustavo Jose de Sousa
7c725bb59e
APMrover2: use compass get_{field,offsets}() functions
...
Both functions are equivalent, so we're going to simply use
get_{field,offsets}() instead of get_{field,offsets}_milligauss().
10 years ago
Randy Mackay
bcc87a9a3b
Rover: replace SKIP_GYRO_CAL with INS_GYR_CAL
...
Also calibrate gyros during accel trim
10 years ago
Staroselskii Georgii
8bb7e2d4b0
Rover: make Rover use milligauss
10 years ago
Grant Morphett
571b4478fd
Rover: Using a new method to check for throttle failsafe
...
This method checks for throttle reversal.
10 years ago
Grant Morphett
f5c7ac7a00
Rover: Fixing issue 302
...
Using the configured FS_THR_VALUE to check for failsafe instead of
just checking against 50 below throttle min.
10 years ago
Andrew Tridgell
b47a09b709
Rover: fixed build of .cpp files
10 years ago
Andrew Tridgell
2b6835d187
Rover: rename all .pde files to .cpp files
10 years ago
Andrew Tridgell
b731ebfd9e
Rover: coversion to class now complete
10 years ago
Andrew Tridgell
adbf9c362e
Rover: automatic substitution for class members
10 years ago
Andrew Tridgell
686d1e7548
Rover: revert AP_Math class change
10 years ago
Tom Pittenger
928a5e0766
APMrover2: compile warnings: float to double. print statements require doubles
10 years ago
Tom Pittenger
514c83301c
APMrover2: compiler warnings: apply is_zero(float) or is_equal(float)
10 years ago
Randy Mackay
245e46205a
Rover: replace range finder health with status
10 years ago
Grant
3831a0ed3e
Rover: Fix INS test in CLI to quit on enter
...
The curly brace was in the wrong spot.
10 years ago
Andrew Tridgell
ef62a2c697
Rover: fixed CLI sonartest
10 years ago
Andrew Tridgell
35b558cfc2
Rover: convert to new AP_InertialSensor API
11 years ago
Andrew Tridgell
bfe705a14d
Rover: convert to new AP_RangeFinder API
11 years ago
Emile Castelnuovo
c5620dfd39
Rover: added VRBRAIN #defines and #includes
11 years ago
Andrew Tridgell
f4079f57b2
Rover: convert to new GPS API
11 years ago
Andrew Tridgell
843318f58c
Rover: updates for new RCInput API
11 years ago
Randy Mackay
0a7d33a1da
Rover: cli test checks read_cmd success before printing
11 years ago
Randy Mackay
29340c68bd
Rover: Mission integration for cli test
11 years ago
Andrew Tridgell
aeb7578e5d
Rover: change to Compass::learn_offsets
11 years ago
Andrew Tridgell
a595272e38
Rover: fixes for AP_Relay API change
11 years ago
Andrew Tridgell
563e5f71ff
Rover: changes for compass API
11 years ago
Andrew Tridgell
615e718524
Rover: updates for compass API change
11 years ago
Andrew Tridgell
787fd018b5
Rover: fixed performance monitoring
...
now the same as plane
12 years ago
Randy Mackay
121e4932ea
Rover: integrate BattMonitor
12 years ago
Andrew Tridgell
53f35dee57
Rover: fixed build with print() changes
12 years ago
Andrew Tridgell
95c2e11b5a
Rover: removed flash_leds() calls
12 years ago
Randy Mackay
814ddcd787
Rover: integrate AP_Notify
12 years ago
Andrew Tridgell
b5db3288ae
Rover: changes for GPS field changes
12 years ago
Andrew Tridgell
135146c735
Rover: added LEARN_CH parameter
...
this allows the learning channel to be set, for transmitters where
setting up channel 7 is difficult
12 years ago
Andrew Tridgell
feb539bade
Rover: fixed HIL operation
...
only HIL sensors - removed HIL_MODE_ATTITUDE as it didn't exercise
enough of the code
12 years ago
Andrew Tridgell
2d795ac85a
Rover: convert to use AP_Scheduler
...
this gives us better timing information and scheduling, while also
making the code easier to read
12 years ago
Andrew Tridgell
5a9485a419
Rover: support RCMAP_* mapping for steering/throttle
12 years ago
Andrew Tridgell
44dd9ddf74
Rover: updates for new compass API
12 years ago
Andrew Tridgell
b13406859f
Rover: replaced constrain() with constrain_float()
12 years ago