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
13 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
Andrew Tridgell
011110e1dd
airspeed: use floating point values and better averaging in zero_airspeed()
...
this makes the calibration of airspeed a bit more accurate, and
prevents truncation of airspeed values
13 years ago
Andrew Tridgell
d5c23c83cf
apm2: fixed for new barometer code
13 years ago
Pat Hickey
f7a9b8a563
ArduPlane: LED digital writes use LED_OFF and LED_ON
13 years ago
Michael Oborne
7ef51f723d
Sensor hil fix's
14 years ago
Andrew Tridgell
e61d742345
GCS: make the two GCS links gcs0 and gcs3
...
the artifical separation between 'gcs' and 'hil' just leads to
confusion. This also simplifies the code a bit more, and saves us a
bit more text
14 years ago
Amilcar Lucas
b7a0d8836a
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
14 years ago
Andrew Tridgell
609ae8359d
import APM_Camera branch from SVN
14 years ago
Andrew Tridgell
e0dc1271d6
imported ArduPlane from ArduPilotMega svn
14 years ago