Lucas De Marchi
d1be74c87e
ArduPlane: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
Lucas De Marchi
d40349d6ae
ArduPlane: fix wrong printf format for 32 bits
...
Heading is a 32 bits value, so use %d.
9 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.
9 years ago
Lucas De Marchi
6f4904189b
Replace use of println_P() with println()
9 years ago
Lucas De Marchi
a964ac38ec
Replace use of print_P() with print()
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
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.
9 years ago
Gustavo Jose de Sousa
2cc07d2899
ArduPlane: 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().
9 years ago
Randy Mackay
6da53ae3b2
Plane: replace SKIP_GYRO_CAL with INS_GYR_CAL
...
Also calibrate gyros with accel cal and set trim
10 years ago
Staroselskii Georgii
db94c8d53d
Plane: make Plane use milligauss
10 years ago
Grant Morphett
c5c74eebfc
Plane: Using the existing function to check for throttle failsafe
...
No need to duplicate the code if we have an existing function for this
sort of thing.
10 years ago
Grant Morphett
a1b96f659b
Plane: 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
b92c2409e4
Plane: added local millis() and micros() to reduce code size a bit
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Tom Pittenger
c4c47cba66
Plane: compile warnings: float to double. print statements require doubles
10 years ago
Andrew Tridgell
b0cdf8952b
Plane: added HIL_MODE parameter
...
this allows for HIL with any firmware
10 years ago
Andrew Tridgell
035b1302ed
Plane: updates for new AP_Baro API
10 years ago
Andrew Tridgell
2c7290fdc0
Plane: fixed baro test in CLI
...
fixes issue #1623
thanks to klrill-ka
10 years ago
Andrew Tridgell
7f5cc97769
Plane: changed for new AP_Airspeed API
10 years ago
Andrew Tridgell
8ee677cfce
Plane: fixed CLI build again
...
thanks to John Williams for pointing it out
10 years ago
Andrew Tridgell
240e87dc2c
Plane: update for new AP_InertialSensor API
10 years ago
Randy Mackay
7d7272520e
Plane: use baro healthy()
...
Use baro last update time in place of healthy to determine whether HIL
sensor updates have started
11 years ago
Andrew Tridgell
ce9b14f0c8
Plane: convert to using StorageManager
11 years ago
Emile Castelnuovo
a111d174c1
Plane: added VRBRAIN #defines and #includes
11 years ago
Andrew Tridgell
e19341ca32
Plane: convert to new GPS driver API
11 years ago
Andrew Tridgell
09ed8d5819
Plane: updates for new RCInput API
11 years ago
Randy Mackay
fcea127537
Plane: CLI uses HAL eeprom storage size definition
11 years ago
Randy Mackay
6e60730c89
Plane: cli test checks read_cmd success before printing
11 years ago
Randy Mackay
9446e9fd2e
Plane: integrate AP_Mission library
11 years ago
Andrew Tridgell
99f2c8387c
Plane: change to Compass::learn_offsets
11 years ago
Andrew Tridgell
11337ab2df
Plane: updates for AHRS holding home position
11 years ago
Andrew Tridgell
e4e5c92453
Plane: fixed relay handling
...
the parameters were badly out of whack!
11 years ago
Andrew Tridgell
49f49648ec
Plane: changes for compass healthy API
11 years ago
Andrew Tridgell
65c97a2f5f
Plane: updates for compass API change
11 years ago
Andrew Tridgell
035ac3800a
Plane: use G_Dt for acro angle integration
...
also cleanup some other uses of performance timing
11 years ago
Randy Mackay
cb91440c63
Plane: remove test_battery from CLI
12 years ago
Randy Mackay
c64d444b5a
Plane: integrate BattMonitor
12 years ago
Andrew Tridgell
444d053dc2
Plane: enable Oilpan and BMP085 on Linux
12 years ago
Andrew Tridgell
4f310aaec8
Plane: fixed build with print() base change
12 years ago
Andrew Tridgell
bcce2e4fc5
Plane: use new Baro API
12 years ago
Andrew Tridgell
21a4da0d29
Plane: removed flash_leds() calls
12 years ago
Randy Mackay
ad8bd16725
Plane: integrate AP_Notify
12 years ago
Andrew Tridgell
3c97fad2ec
Plane: changes for GPS field changes
12 years ago
Andrew Tridgell
93cd0f9a31
Plane: switch to new AP_Scheduler
...
this gives us more accurate task scheduling in ArduPlane, plus better
monitoring of task timing (via SCHED_DEBUG)
12 years ago
Andrew Tridgell
fb9bf21522
Plane: allow channel mapping of first 4 channels
...
this makes it easier to support DSM and SBUS radios
12 years ago
Andrew Tridgell
f7697574db
Plane: use the new airspeed driver interface
...
the choice of analog source is now in the airspeed driver
12 years ago
Andrew Tridgell
a22f5e3bc4
Plane: enable wind estimation
12 years ago
Andrew Tridgell
dd633fcf3f
Plane: make voltage and battery capacity failsafe settable at runtime
...
this also fixes issue #292
12 years ago
Andrew Tridgell
001d18b51d
Plane: removed scaling of pitot source
12 years ago
Andrew Tridgell
55f7d18979
Plane: avoid copying the DCM matrix
12 years ago