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
Andrew Tridgell
e5846bd965
AP_Baro: removed _sync_access check
...
this isn't needed as the common variables are already protected by
cli()/sei()
13 years ago
Andrew Tridgell
7b4dc246f8
RC_Channel: don't force radio_out in enable_aux_servos()
...
this is called regularly, and causes the servo to twitch
13 years ago
Andrew Tridgell
ccf8ba3ce9
DCM: limit the contribution of the baro to vertical acceleration
...
limit to a max of 0.5g
13 years ago
Andrew Tridgell
458a42654b
DCM: disable use of baro for vertical accel by default
...
this has caused problems with too many users
13 years ago
rmackay9
50a97f3092
AP_GPS: added get_lag method to return expected lag from the GPS.
13 years ago
rmackay9
30aa104000
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.
13 years ago
rmackay9
2110231ee3
AP_LeadFilter: bug fix so velocity * _lag is used (otherwise we are assuming a 1sec lag)
13 years ago
rmackay9
2c36693a50
AP_LeadFilter: added set_lag feature to allow us to adjust it for different GPSs
13 years ago
Robert Lefebvre
9e32d45d7b
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.
13 years ago
Andrew Tridgell
e761645e24
AP_Param: added find_by_index()
13 years ago
Andrew Tridgell
728b3a133e
GPS: disable auto detection of NMEA and SiRF on a 1280 board
...
saves a bit more flash space
13 years ago
Andrew Tridgell
0c864fd4dc
AP_Airspeed: a bit more filtering
...
this helps reduce noise at low speed
13 years ago
rmackay9
93ae29a3e9
ArduCopter: added throttle curve (although disabled by default) for all multicopters
13 years ago
Andrew Tridgell
7e544e8ead
MPU6k: save 72 bytes of memory
...
the buffer can be on the stack
13 years ago
Andrew Tridgell
78a95290a3
SITL: prevent a fd leak in GPS code
13 years ago
Andrew Tridgell
59b44816ec
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
13 years ago
Andrew Tridgell
8620a036de
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
13 years ago
Andrew Tridgell
bd31f340a7
RC_Channel: support channel reversal on range channels
...
this makes it possible to have a reverse throttle in ArduPlane
13 years ago
rmackay9
303ca11c4c
HIL: changes to fix HIL for ArduCopter after recent timing changes.
...
Changes include using AP_PeriodicProcess and calling imu.init even in HIL mode
13 years ago
Michael Oborne
94f956a0ca
fix AP attitude hil - with randys help
13 years ago
rmackay9
9e66b555cb
ArduCopter: removed INSTANT_PWM from ArduCopter and AP_Motors library
13 years ago
rmackay9
1c9fe3b1b6
AP_AHRS: fix to allow example sketch to compile
13 years ago
Andrew Tridgell
ba9543ee04
GPS: NMEA bug fix from Alexey Kozin
...
thanks Alexey!
13 years ago
Andrew Tridgell
fba1692d69
AHRS: added AHRS_BARO_USE parameter
...
allow disabling of the use of the barometer for vertical acceleration
compensation
13 years ago
Andrew Tridgell
b787dc8cce
APM: added wdt.h for SITL build of APM
13 years ago
rmackay9
9f1033dc42
AP_InertialSensor_Stub: added num_samples_available method to fix HIL build
13 years ago
rmackay9
130f3b0030
AP_InertialSensor_MPU6000: move _last_sample_time_micros to capture time data_interrupt was called
13 years ago
rmackay9
7a265dbf61
AP_InertialSensor: use AP_TimerProcess's queue_process to run read from MPU6000 after any currently running processes complete
13 years ago
rmackay9
55ef1e0a29
AP_PeriodicProcess: queue_process changes to suspend other processes before running queued process
...
Also restored suspend_timer to void return type
13 years ago
rmackay9
6ea5c21f7c
AP_ADC: added num_samples_available to allow main loop to be synced with arrival of new sensor data for Oilpan.
13 years ago
rmackay9
fc4ff007e6
AP_IMU: added num_samples_available to allow main loop timing to be synced with arrival of new data from IMU.
13 years ago
rmackay9
0a6219695b
AP_InertialSensor: changed read of sensor from MPU6000 to happen immediately
...
This reduces the delay between when data arrives and when it is used
by up to 1ms.
Added num_samples_available method to all InertialSensors to allow
main loop timing to be synced with sensors.
13 years ago
Craig Elder
90b74f5bab
APM_RC: fixed noisy PWM output on startup for APM2
...
This reduces the number of rubbish pulses on the APM2 PWM output pins
on startup, which should help with booting some cheaper ESCs.
Thanks to Randy for the idea!
13 years ago
Andrew Tridgell
4c07add542
AP_Camera: updated for new RC_Channel_aux API
13 years ago
Andrew Tridgell
f41270a3ce
AP_Mount: updated for new RC_Channel_aux API
13 years ago