Andrew Tridgell
554869033f
Plane: disabled rangefinder on APM2
...
this saves 5k of flash space, enough for support to be kept for
another release
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Andrew Tridgell
7f5cc97769
Plane: changed for new AP_Airspeed API
10 years ago
Andrew Tridgell
c8060cb9f7
Plane: use load factor to limit nav_roll_cd
...
this calculates the aerodymanic load factor from smoothed airspeed and
uses it to limit roll to keep it below the level where the load factor
would take us past the aerodymanic limit of the airframe
10 years ago
Andrew Tridgell
ba312856ea
Plane: provide a temperature to baro from the airspeed sensor
10 years ago
Andrew Tridgell
a6ee46086c
Plane: allow continued use of rangefinder data for 5s after loss of contact
...
this allows short outages to be ridden out
11 years ago
Andrew Tridgell
b6319a9d19
Plane: keep an estimate of the rangefinder altitude
...
only accept data when we have had 10 samples in a row in range at 50Hz
11 years ago
Andrew Tridgell
3e320d71ab
Plane: added TERRAIN_FOLLOW parameter
...
when enabled RTL, CRUISE and rally points will use terrain altitude
11 years ago
Andrew Tridgell
28e1449e8d
Plane: updates for new AP_RangeFinder API
11 years ago
Jonathan Challinger
0bc0abf02d
Plane: Supply compass with current measurement for compassmot
11 years ago
Andrew Tridgell
11337ab2df
Plane: updates for AHRS holding home position
11 years ago
Andrew Tridgell
3a986474e0
Plane: added RSSI_RANGE parameter
11 years ago
Andrew Tridgell
906fc17905
Plane: added baro and airspeed logging
...
including raw temperature and pressure values
11 years ago
Andrew Tridgell
8755747da0
Plane: only log when armed by default
...
use safety switch if arming not enabled
11 years ago
Andrew Tridgell
1124e84ae0
Plane: fixed APM1 build
11 years ago
Andrew Tridgell
5a0cb5dea4
Plane: added sonar logging to dataflash
11 years ago
Randy Mackay
9722276827
Plane: batt curr and remaining should be int16
12 years ago
Randy Mackay
9388ea3848
Plane: integrate BattMonitor exhausted method
...
BatteryMonitor object made static
Removed unused macros for battery voltage and current monitoring
12 years ago
Randy Mackay
c64d444b5a
Plane: integrate BattMonitor
12 years ago
Randy Mackay
ab4274aa8d
Plane: disable battery failsafe when usb connected
12 years ago
Andrew Tridgell
2ba9ce60e3
Plane: fixed comment
12 years ago
Andrew Tridgell
ed20c4cbc8
Plane: fixed initial reporting of battery remaining
...
we were not showing battery remaining 100% until we used some battery
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
dd633fcf3f
Plane: make voltage and battery capacity failsafe settable at runtime
...
this also fixes issue #292
12 years ago
Andrew Tridgell
97b6aaac77
Plane: use voltage_average() for RSSI
...
this fixes it on PX4
12 years ago
Andrew Tridgell
b2ad43f625
Plane: removed ahrs.set_barometer()
12 years ago
Andrew Tridgell
2331c84423
Plane: use voltage_average() to not depend on INPUT_VOLTS
12 years ago
Andrew Tridgell
cf18534163
Plane: use new functions
12 years ago
Pat Hickey
92b0c302f2
ArduPlane: Ported to AP_HAL
12 years ago
Andrew Tridgell
805a340350
Plane: enable attitude and raw logging in HIL modes
12 years ago
Andrew Tridgell
7b733cd12b
APM: fixed altitude_filter for new LowPassFilter syntax
12 years ago
Andrew Tridgell
8652bfee8d
APM: added RSSI_PIN option for receiver RSSI
...
this allows you to configure the pin for receiver RSSI without
recompiling
12 years ago
Andrew Tridgell
f828956cb8
battery: use set_pin() to allow pins to be changed at runtime
12 years ago
rmackay9
775489d658
ArduPlane: added BATT_VOLT_PIN and BATT_CURR_PIN parameters to allow support for new 3DR IV battery monitor
12 years ago
Andrew Tridgell
2324997e16
APM: added ALT_OFFSET parameter
...
useful to adjust for barometric pressure changes during a long flight
13 years ago
Andrew Tridgell
6ab2a861f7
APM: added RSSI to RC_CHANNELS_RAW as well
...
and prevent double read
13 years ago
Andrew Tridgell
c0c0b8c976
APM: added RECEIVER_RSSI_PIN option
...
this allows for the receiver RSSI to be sent over MAVLink
Thanks to Burt Green for the suggestion
13 years ago
uncrustify
5267ea6aad
uncrustify ArduPlane/sensors.pde
13 years ago
Andrew Tridgell
034fb5b194
APM: fixed hil build
13 years ago
Andrew Tridgell
c960db7af5
APM: allow for separate calibration of airspeed/barometer
...
this is useful just before takeoff, to account for temperature changes
13 years ago
Jonathan Challinger
7815e3d810
APM: fixed rounding of altitude
...
the cast was rounding to the nearest meter
13 years ago
Andrew Tridgell
de3c9ce56d
Airspeed: change APM to use new AP_Airspeed library
...
the next step is AHRS dead reckoning
13 years ago
Andrew Tridgell
82ede937e7
AnalogSource: convert analogRead() calls to the new API
...
this should give us much better analog values, plus save a bunch of
CPU time
13 years ago
Andrew Tridgell
5bccfbd94c
Barometer: fixed airstart for APM
...
we need to re-load the ground pressure and temperature from eeprom on
and airstart
13 years ago
Andrew Tridgell
6639294c72
APM: update for new barometer interface
...
the barometer can now calibrate and return altitude values.
A 0.3 low pass filter is used on altitude to match the previous code
13 years ago
Doug Weibel
762a5550de
Remove a debugging print
13 years ago
Doug Weibel
69c7598db2
Update battery monitoring code for ArduPlane
...
Fixes compatibility for APM2. Also a significant update to the battery monitoring code: We previously had monitoring modes for individual cell voltages for 3 and 4 cell lipos. These have been removed as they were never really supported (the cell voltages were computed but were not reported or recorded anywhere). Also, some clean-up/prep work was done for supporting monitoring 2 separate battery packs. The CLI battery and current monitoring tests were consolidated into 1 test.
13 years ago
Andrew Tridgell
cd3729d993
APM: added error checking on barometer read
...
if the barometer is dead and the GPS has a fix, use the GPS for
altitude
13 years ago
Andrew Tridgell
df094ce463
fixed airspeed sensor for ArduPlane on APM2
...
we were trying to use a non-existant ADC chip!
13 years ago
Andrew Tridgell
0a7332b6e3
airspeed: smooth the airspeed value a bit more
...
the value is very noisy in my tests. A bit more smoothing may help
13 years ago