Pat Hickey
a626e21e98
AP_Baro_BMP085: move apm2_hardware flag from init to constructor.
13 years ago
Pat Hickey
f3ad7f3af8
Wire and SPI Init: move to sketch system.pde from libraries
...
* Wire.begin removed from AP_Baro_BMP085::init()
* SPI.begin removed from AP_Baro_MS5611::init()
* SPI.begin removed from AP_InertialSensor_MPU6000::hardware_init()
* Both Wire.begin and SPI.begin added very early in init_ardupilot in
ArduCopter/system.pde and ArduPlane/system.pde
13 years ago
Pat Hickey
49ca774734
AP_PeriodicProcess: AP_TimerProcess can register multiple callbacks.
13 years ago
Pat Hickey
6dbd6b4181
ArduCopter: Get barometer data in terms of AP_Baro interface
...
* Major change: Log.pde Log_Write_Control_Tuning has changed significantly
* MS5611 has no concept of RawPres and _offset_press
* Log the get_pressure() instead. (If we don't trust the barometer, what's the point?)
13 years ago
Pat Hickey
39fe9075d9
ArduCopter Init: different call to barometer.init based on CONFIG_BARO
...
* BMP085 has two arguments, second varying on apm1/apm2
* ms5611 has no arguments
13 years ago
Pat Hickey
b055aa6f81
ArduCopter: instantiate correct AP_Baro object based on CONFIG_BARO
13 years ago
Pat Hickey
1bfab64543
AP_Baro_BMP085: Delete commented out code
...
* If its important to get old code back, thats why version control exists
13 years ago
Pat Hickey
f3270b7f13
AP_Baro_BMP085: implement AP_Baro interface
13 years ago
Pat Hickey
f52453beed
AP_Baro_MS5611: init must also perform SPI.begin
13 years ago
Pat Hickey
64eb1889ab
AP_Baro_MS5611: CS pin is arduino pin 40
13 years ago
Pat Hickey
1832ed0355
AP_Baro_MS5611: Implement AP_Baro interface
13 years ago
Pat Hickey
f0ab0318b3
AP_Baro_BMP085: Conform to AP_Baro interface. Make the rest private.
13 years ago
Pat Hickey
a41b6da263
AP_Baro_MS5611: conform to AP_Baro interface
13 years ago
Pat Hickey
d113992c10
AP_Baro: Create virtual interface
13 years ago
Pat Hickey
d7f77aec93
ArduCopter & ArduPlane: Added support for apm2beta build via APM2_BETA_HARDWARE define
...
* This enables the BMA085 driver for compatibility with beta boards.
* The CLI_SLIDER_ENABLED=DISABLED line does not need to be in the makefile.
config.h takes care of this default.
13 years ago
Pat Hickey
1b2ebdff44
ArduPlane: added config.h and defines.h to support CONFIG_BARO
13 years ago
Pat Hickey
62844d8ddc
ArduCopter: added config.h and defines.h to support CONFIG_BARO
13 years ago
Pat Hickey
04ea979331
ArduPlane: Rename APM_BMP085 classes to AP_Baro_BMP085 classes
13 years ago
Pat Hickey
fdffd69257
AP_Baro_MS5611: renamed class implementation from APM_MS5611
13 years ago
Pat Hickey
c407b0d85e
AP_Baro_MS5611.h: reorganized
...
* moved ms5611 macros to c file
* reorganized class declaration & retabbed
* made Temp, Pres, and Alt private variables.
13 years ago
Pat Hickey
34cebd8a3e
AP_Baro_MS5611: Overwrote with Jose Julio's latest files.
13 years ago
Pat Hickey
de6507a47d
ArduCopter: Rename APM_BMP085 classes to AP_Baro_BMP085 classes.
13 years ago
Pat Hickey
cc6837cbab
AP_Baro: Export AP_Baro_BMP085 and AP_Baro_BMP085_HIL headers.
13 years ago
Pat Hickey
f445ec1242
AP_Baro_BMP085(+_HIL): Rename classes from APM_BMP085 to AP_Baro_BMP085.
13 years ago
Pat Hickey
7032c32b42
BMP085 fix line endings
13 years ago
Pat Hickey
7ef146044e
AP_Baro: move all APM_BMP085 files inside AP_Baro
13 years ago
Pat Hickey
9250053bfe
Added AP_Baro and AP_Baro_MS5611 classes.
...
Incomplete and does not work.
13 years ago
Pat Hickey
8d878a2cae
ArduCopter CLI: Add imu.init before imu.init_accel for "level"
...
* Depending on when you entered the CLI, the imu might not be
initialized yet, and init_accel would hang.
13 years ago
Pat Hickey
2e200834e1
ArduCopter: Revert "Switched to Gyro only startup"
...
This reverts commit f932f0a9f6a29e9c3193622109298c657ed5a908.
I fixed this bug in 734185599cd9d6a487c675460c09895172e012b0.
It is no longer valid to call IMU::init_gyro() before IMU::init().
13 years ago
Jason Short
5d0e3664ad
Hack to prevent fly aways
...
Cleanup to remove SIMPLE mode switch note
13 years ago
Jason Short
e8e126a636
removed CLI switch by default, decreased Nav I
13 years ago
Jason Short
c1aa015ef1
added debug prints, broke out Angle val to debug
13 years ago
Jason Short
a685e5b575
fix for navigation scaleLongUp
13 years ago
Randy Mackay
fe336fb749
ArduCopter - small fixes to fix HIL compile errors
13 years ago
Randy Mackay
67855b207d
Arducopter, RangeFinder - added SONAR_TYPE parameter and properly support the XL (default), LV and long distance XL (aka XLL) sonar types
13 years ago
Jason Short
f89fed02c3
made it so nav is called in Simple mode
13 years ago
Jason Short
4659a9ffce
Adjust Simple mode on the fly.
13 years ago
Jason Short
af0ae6a10f
Set Nav_WP as home
13 years ago
Jason Short
1f3abcf048
eased up on the i term blocker
13 years ago
Jason Short
9e6cf529b9
Cleaned up mission 3
13 years ago
Jason Short
069bcbf5e6
Made landing slower
13 years ago
Jason Short
873daae095
Allows you to clear the stored mission when in Auto
13 years ago
Jason Short
29554b7d73
Will add a landing command to last WP if we are on the ground.
13 years ago
Jason Short
648ab5f4ae
Switched to Gyro only startup
13 years ago
Jason Short
f3ff7aa0a8
rework of inflight trim.
13 years ago
Pat Hickey
f2652d23bf
ArduPlane: calibrate accel with imu.init_accel after imu.init
...
* complements commit 73418559, where init_accel was eliminated
from AP_IMU_INS::init cold start.
13 years ago
Pat Hickey
56b0be3124
APM_RC: APM1 fast output speed increased to 400hz.
13 years ago
Pat Hickey
7afb091f26
APM_RC: APM2 fast output speed increased to 400hz.
13 years ago
Pat Hickey
f3a4fbc7af
AP_IMU_INS: Eliminate init_accel from cold start.
...
* Bug reported by Jason, 10 Dec 11
13 years ago
Jason Short
5e12924907
Removed Instant PWM from disarmed output
13 years ago