Andrew Tridgell
a53cbc08f3
GPS: avoid output delays in the GPS auto detection
...
this sends out the GPS init strings in 16 byte chunks to avoid causing
timing glitches when no GPS is attached
12 years ago
Andrew Tridgell
a979fb6014
AP_AnalogSource: added set_pin() interface
...
this allows pin numbers to be changed at runtime
12 years ago
Andrew Tridgell
5642922ca7
RC_Channel: simplify the example
...
use an array of channels
12 years ago
Andrew Tridgell
86b509a609
RC_Channel: ensure _reverse is not 0
...
this caused the example to fail
12 years ago
Pat Hickey
f48568c9a6
MultiFastSerial example sketch: notes on fatal error in avr-gcc 4.5.x
12 years ago
Pat Hickey
e84a467311
FastSerial example sketch: Depend on AP_Common for PSTR definitions
12 years ago
Pat Hickey
76e93e9fd7
AP_Common: PSTR def has specific version for avr-gcc 4.6 compatibility
...
* Also a small change in FastSerial/vprintf.cpp, which duplicates the
PSTR definition
* Won't effect others using earlier versions of avr-gcc
12 years ago
Pat Hickey
2936dbb9de
RC_Channel unit test: fixed build, functionality still wrong
12 years ago
Pat Hickey
d75ca684cc
MultiFastSerial test: make it easier to observe which serial port causes crash
12 years ago
Pat Hickey
930d387b8d
FastSerial: add extra example sketch MultiFastSerial to test multiple ports
12 years ago
rmackay9
c0cf2d6f38
AP_Motors: added reached_limit method which returns bit mask indicating which control inputs could not be achieved
13 years ago
Andrew Tridgell
00bf548f87
AHRS: limit wind speed estimate changes
...
sudden yaw changes can cause bad wind estimates
13 years ago
Andrew Tridgell
e8c4dedcd7
AP_OBC: fixed resume on GPS loss
13 years ago
Pat Hickey
8a6017ea48
AP_ADC_test: fix build of test regressions.
...
I'm not convinced I was able to make the timing test meaningful.
Someone should please lookinto this.
13 years ago
Pat Hickey
aa210d7e99
AP_DataFlash_test wibble
13 years ago
Pat Hickey
605f89fa69
DataFlash_APM2: private AP_Semaphore* rather than use extern AP_Semaphore_spi3
...
The AP_Semaphore* argument to the constructor can be null (and is by
default for compatibility). Semaphore is only used when non-null.
13 years ago
Pat Hickey
5ac21b71ce
AP_OpticalFlow_test: fix build with NULL semaphore.
13 years ago
Pat Hickey
26ba391cd4
AP_OpticalFlow_ADNS3080: has private AP_Semaphore* _semaphore
...
Semaphore can be null, handled correctly if it is. Rather than check for
which SPI bus the sensor is using, just check whether semaphore is not null
before using it. More general and flexible.
13 years ago
Pat Hickey
6fc0d22671
AP_Semaphore.h: proper h macros
13 years ago
Pat Hickey
b2b0b70d03
AP_Semaphore_test: instantiate AP_Semaphore_spi3 locally.
13 years ago
Pat Hickey
c20a401c6a
AP_Semaphore: do not instantiate or export a global spi3 semaphore.
13 years ago
Pat Hickey
dfcbb6d9e9
AP_Semaphore_test: bugfix to extern semaphore, add Makefile for builds.
13 years ago
Pat Hickey
5796ee91ca
AP_Semaphore: make into separate library rather than part of AP_Common
13 years ago
rmackay9
c320938ff2
AP_MotorsMatrix: modified stability patch to sacrifice yaw first if necessary to ensure stability.
...
Resolves climb-on-yaw problem.
13 years ago
rmackay9
e33d314f1d
AP_AHRS_MPU6000: resolve compiler warning re shadowing
13 years ago
rmackay9
b9963f5b5c
DataFlash: modified to use AP_Semaphore for SPI3 bus when required.
...
Also fixed test sketch which seemed broken.
13 years ago
rmackay9
f9b16a9a50
AP_OpticalFlow: modified to use AP_Semaphore for SPI3 bus when required
13 years ago
rmackay9
23442f9caf
AP_Semaphore: added new library to help remove conflicts over SPI bus
13 years ago
rmackay9
670fcbb634
AP_AHRS_MPU6000: fixed yaw correction and added _secondary_ahrs parameter
...
_secondary_ahrs parameter allows mpu6000 ahrs to runin parallel with DCM.
13 years ago
rmackay9
35cb7ff7e5
AP_PeriodicProcessStub: fixed build due to missing reference to _suspended
13 years ago
rmackay9
8c6fd340d7
AP_AHRS: added scheduler parameter to init
...
Required by the AP_AHRS_MPU6000 class which needs to disable timed processes that could interfere with it's communication with the mpu6000
13 years ago
rmackay9
c007a19200
AP_PeriodicProcess: added running() method which tells the caller whether the timer is suspended or not
13 years ago
rmackay9
00e79e7915
AP_TimerProcess: added simple example sketch
13 years ago
rmackay9
41fbb19cf5
AP_InertialSensor_MPU6000: replaced _cs_pin parameter with #define and saved 1 byte of memory
...
Updated ArduCopter, ArduPlane and example sketches in AP_InertialSensor, AP_IMU and AP_AHRS libraries because they no longer need to pass in cs_pin to the constructor
13 years ago
rmackay9
921ab3fe12
ArduCopter: bug fix to DMP initialisation (it was freezing due to SPI bus conflicts)
13 years ago
rmackay9
a7c2ea1891
AP_OpticalFlow: save and restore SPI bus speed to remove conflict with dataflash that runs at 8Mhz
13 years ago
rmackay9
6ed59fba91
AP_Motors: enable throttle curve by default
13 years ago
Andrew Tridgell
9f9d570597
MAVLink: comm_get_txspace should return 0 on error
...
it is used in expressions that add constants
13 years ago
Andrew Tridgell
14b1674c3e
PeriodProcess: fixed build warning
13 years ago
Andrew Tridgell
81fd4b3a3c
OpticalFlow: fixed SITL build
13 years ago
Andrew Tridgell
608cc60689
GPS: fixed SIRF auto detect code
13 years ago
Andrew Tridgell
89fa234233
SPI3: fixed the build
13 years ago
rmackay9
a75e93da06
AP_TimerProcess: add one additional slot for optical flow
13 years ago
rmackay9
163a7841f6
AP_OpticalFlow: small fixes to test sketch to make it work with modified lib
13 years ago
rmackay9
cb584f81fb
AP_OpticalFlow: remove APM2 version of library now that AP_OpticalFlow_ADNS3080 class can autodetect which SPI bus the sensor is on
13 years ago
rmackay9
4d3d13582b
AP_OpticalFlow_ADNS3080: detect if optical flow sensor is on standard or secondary SPI bus
13 years ago
rmackay9
ca383b393d
AP_OpticalFlow: use AP_PeriodicProcess to read at 20hz
13 years ago
rmackay9
96bb6e9c70
SPI3: add new library to make use of secondary SPI bus
13 years ago
rmackay9
bc2aa84394
AP_Motors: remove stray debug message re set-up of throttle curve
13 years ago
rmackay9
e4c8eaa181
AP_Airspeed: fixed constructor compile error in example sketch
13 years ago