rmackay9
c2c2d560bb
AP_AHRS_MPU6000: fixed yaw correction and added _secondary_ahrs parameter
...
_secondary_ahrs parameter allows mpu6000 ahrs to runin parallel with DCM.
2012-09-30 00:21:18 +09:00
rmackay9
db15b3b563
AP_PeriodicProcessStub: fixed build due to missing reference to _suspended
2012-09-29 14:41:25 +09:00
rmackay9
1cd4b08fac
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
2012-09-29 13:51:21 +09:00
rmackay9
56320d282f
AP_PeriodicProcess: added running() method which tells the caller whether the timer is suspended or not
2012-09-29 13:47:55 +09:00
rmackay9
2c29fd8ba4
AP_TimerProcess: added simple example sketch
2012-09-29 13:23:51 +09:00
rmackay9
4bca609b9f
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
2012-09-28 19:21:59 +09:00
rmackay9
2fd9022f03
ArduCopter: bug fix to DMP initialisation (it was freezing due to SPI bus conflicts)
2012-09-28 18:34:23 +09:00
rmackay9
d0177688b4
AP_OpticalFlow: save and restore SPI bus speed to remove conflict with dataflash that runs at 8Mhz
2012-09-28 17:29:45 +09:00
rmackay9
435e2c2824
AP_Motors: enable throttle curve by default
2012-09-25 23:36:35 +09:00
Andrew Tridgell
e59a031611
MAVLink: comm_get_txspace should return 0 on error
...
it is used in expressions that add constants
2012-09-25 07:20:43 +10:00
Andrew Tridgell
24ab456f8e
PeriodProcess: fixed build warning
2012-09-25 07:10:35 +10:00
Andrew Tridgell
b39cc974dc
OpticalFlow: fixed SITL build
2012-09-25 07:10:22 +10:00
Andrew Tridgell
dbf501c646
GPS: fixed SIRF auto detect code
2012-09-25 07:10:07 +10:00
Andrew Tridgell
bec34f3af6
SPI3: fixed the build
2012-09-25 07:03:23 +10:00
rmackay9
825246617e
AP_TimerProcess: add one additional slot for optical flow
2012-09-24 18:39:28 +09:00
rmackay9
97a66a5346
AP_OpticalFlow: small fixes to test sketch to make it work with modified lib
2012-09-24 18:39:22 +09:00
rmackay9
f55d3de12a
AP_OpticalFlow: remove APM2 version of library now that AP_OpticalFlow_ADNS3080 class can autodetect which SPI bus the sensor is on
2012-09-24 18:39:17 +09:00
rmackay9
99eaa37a38
AP_OpticalFlow_ADNS3080: detect if optical flow sensor is on standard or secondary SPI bus
2012-09-24 18:39:12 +09:00
rmackay9
17ccc7e62e
AP_OpticalFlow: use AP_PeriodicProcess to read at 20hz
2012-09-24 18:39:07 +09:00
rmackay9
1cf0b2334a
SPI3: add new library to make use of secondary SPI bus
2012-09-24 18:39:01 +09:00
rmackay9
c28d4e9ad6
AP_Motors: remove stray debug message re set-up of throttle curve
2012-09-23 12:25:31 +09:00
rmackay9
4825d16cd8
AP_Airspeed: fixed constructor compile error in example sketch
2012-09-23 11:44:28 +09:00
Andrew Tridgell
f2e160a5e7
AP_Baro: removed _sync_access check
...
this isn't needed as the common variables are already protected by
cli()/sei()
2012-09-20 17:34:33 +10:00
Andrew Tridgell
1b793bf3f4
RC_Channel: don't force radio_out in enable_aux_servos()
...
this is called regularly, and causes the servo to twitch
2012-09-20 17:34:32 +10:00
Andrew Tridgell
4cfea44f9f
DCM: limit the contribution of the baro to vertical acceleration
...
limit to a max of 0.5g
2012-09-20 17:34:32 +10:00
Andrew Tridgell
a84d7b6f4f
DCM: disable use of baro for vertical accel by default
...
this has caused problems with too many users
2012-09-20 17:34:32 +10:00
rmackay9
c6ee948d60
AP_GPS: added get_lag method to return expected lag from the GPS.
2012-09-20 15:48:22 +09:00
rmackay9
53aced1def
AP_LeadFilter: moved lag to be a parameter passed into the get_position function.
...
This saves 4 bytes of memory and will work better with the way we initialise the gps.
2012-09-20 15:27:27 +09:00
rmackay9
d97ab4f490
AP_LeadFilter: bug fix so velocity * _lag is used (otherwise we are assuming a 1sec lag)
2012-09-20 13:17:42 +09:00
rmackay9
f002d6e9a6
AP_LeadFilter: added set_lag feature to allow us to adjust it for different GPSs
2012-09-20 13:10:24 +09:00
Robert Lefebvre
739d31f06e
Change to the "Stability Patch" in Motors_Matrix in order to make it cover both the upper throttle range and lower, and also to cause it to raise/lower all motors when a single motor goes out of ranges.
2012-09-19 20:43:58 -04:00
Andrew Tridgell
0922b82d42
AP_Param: added find_by_index()
2012-09-20 07:42:35 +10:00
Andrew Tridgell
8a33e2ba37
GPS: disable auto detection of NMEA and SiRF on a 1280 board
...
saves a bit more flash space
2012-09-19 19:36:48 +10:00
Andrew Tridgell
f3f9d644d9
AP_Airspeed: a bit more filtering
...
this helps reduce noise at low speed
2012-09-19 16:23:25 +10:00
rmackay9
aaab3c08aa
ArduCopter: added throttle curve (although disabled by default) for all multicopters
2012-09-18 23:05:08 +09:00
Andrew Tridgell
3306ba95a7
MPU6k: save 72 bytes of memory
...
the buffer can be on the stack
2012-09-18 13:58:50 +10:00
Andrew Tridgell
2bc1d4a5ae
SITL: prevent a fd leak in GPS code
2012-09-17 14:45:48 +10:00
Andrew Tridgell
c62197370a
GPS: replaced the GPS auto-detect mechanism
...
the old mechanism wasted most of the input bytes, and chewed a lot of
CPU, making it impractical to do GPS detection for a GPS attached
after startup
The new code is async, and detects a GPS by looking for a fully formed
packet with the right checksum for each GPS type
2012-09-17 14:45:47 +10:00
Andrew Tridgell
08cf9823fd
RC_Channel_aux: minor cleanups
...
remove unused enable_out_ch() and enable k_manual channels. This
ensures k_manual channels used for bottle drop are initialised
correctly to trim output
2012-09-16 15:50:13 +10:00
Andrew Tridgell
644b3c6e17
RC_Channel: support channel reversal on range channels
...
this makes it possible to have a reverse throttle in ArduPlane
2012-09-16 15:06:26 +10:00
rmackay9
9965dd8b1a
HIL: changes to fix HIL for ArduCopter after recent timing changes.
...
Changes include using AP_PeriodicProcess and calling imu.init even in HIL mode
2012-09-15 18:42:56 +09:00
Michael Oborne
f9c11627a5
fix AP attitude hil - with randys help
2012-09-15 16:47:18 +08:00
rmackay9
54d07f6d04
ArduCopter: removed INSTANT_PWM from ArduCopter and AP_Motors library
2012-09-13 21:31:13 +09:00
rmackay9
3c0153e9dc
AP_AHRS: fix to allow example sketch to compile
2012-09-13 16:45:52 +09:00
Andrew Tridgell
efabf7403e
GPS: NMEA bug fix from Alexey Kozin
...
thanks Alexey!
2012-09-12 15:04:24 +10:00
Andrew Tridgell
715541b508
AHRS: added AHRS_BARO_USE parameter
...
allow disabling of the use of the barometer for vertical acceleration
compensation
2012-09-12 14:42:04 +10:00
Andrew Tridgell
f5efb25e62
APM: added wdt.h for SITL build of APM
2012-09-10 15:52:53 +10:00
rmackay9
8624b0138e
AP_InertialSensor_Stub: added num_samples_available method to fix HIL build
2012-09-10 11:38:13 +09:00
rmackay9
d8142c2351
AP_InertialSensor_MPU6000: move _last_sample_time_micros to capture time data_interrupt was called
2012-09-10 11:38:08 +09:00
rmackay9
bd3eab7c0f
AP_InertialSensor: use AP_TimerProcess's queue_process to run read from MPU6000 after any currently running processes complete
2012-09-10 11:38:03 +09:00