Andrew Tridgell
17c115d2aa
SITL: don't define __AVR_ATmega2560__ on desktop build
...
this allows us to properly separate the desktop build in the code
12 years ago
Andrew Tridgell
7181780d3a
DigitalWriteFast: added README about license and author
12 years ago
Andrew Tridgell
8311062610
AP_OpticalFlow: fixed some memory cast warnings
12 years ago
Andrew Tridgell
10b8030e62
AP_Limits: fixed some memory cast warnings
12 years ago
Andrew Tridgell
fe23d27904
SITL: added SREG declaration
12 years ago
Andrew Tridgell
9e9c08b6d7
DigitalWriteFast: fixed memory cast to work on SITL build
12 years ago
Andrew Tridgell
8d1905a40b
APM: change WIND direction to match convention
...
Thanks to Leo Hogg for pointing this out
12 years ago
rmackay9
67fadd337d
DigitalWriteFast: first addition of lib to speed up read and writes of analog pins
12 years ago
rmackay9
957d366cca
Filter: improved low pass filter allows setting gain using time_step and cutoff freq
12 years ago
rmackay9
01dc9fbe3e
APM_RC: allow ppm sum for as few as 5 channels
12 years ago
rmackay9
47b1bc30d3
APM_RC: fix _last_update definition to resolve build error
12 years ago
John Arne Birkeland
4258490cd8
APM_RC - Interupt safe get_last_update();
12 years ago
rmackay9
73ed6c9dbf
ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds
12 years ago
Andrew Tridgell
8561f08b2f
AP_AHRS: prevent a large delta_t from affecting DCM solution
...
this should fix large changes in attitude directly after arming
ArduCopter
12 years ago
Andrew Tridgell
e9e01ae28a
SITL: fixed build with new sonar driver
12 years ago
rmackay9
4bfd3d5a29
AP_RangeFinder_MaxsonarI2CXL: fix compiler error re undefine I2c
12 years ago
rmackay9
f68523b39b
AP_RangeFinder_MaxsonarI2CXL: resolve shadowed variable compiler warning
12 years ago
Andrew Tridgell
daa4712078
AP_Compass: force I2C speed low in a couple more situations
12 years ago
Andrew Tridgell
27ff999319
I2C:: catch some more types of I2C errors for error count
12 years ago
Andrew Tridgell
8c2dadc12f
AP_Compass: print I2C error count in test sketch
12 years ago
rmackay9
321d40f73a
AP_RangeFinder: added support for MaxBotix XL I2C sonar
12 years ago
rmackay9
71a0022f34
AP_IMU: delete now that all functionality is moved to AP_InertialSensor
12 years ago
Jason Short
c848fe18a5
APM1 Dataflash update
...
My data flash would never erase, this fixed it.
12 years ago
John Arne Birkeland
97d85de361
Optimized APM_RC.InputCh() to prevent global interrupt disable each time a value is read.
12 years ago
rmackay9
50a4838879
AP_Motors, AP_RangeFinder, Filter: fixes to example sketches
12 years ago
rmackay9
56f88821e9
AP_AHRS: fix example sketch
...
AP_Airspeed: fix example sketch
AP_Baro: fix example sketch
AP_Declination: fix example sketch
AP_Math: fix example sketch
12 years ago
rmackay9
41489f34f9
AC_PID: fixed example sketch's compile errors
12 years ago
rmackay9
6bbf66697b
AP_Mount: resolve compiler warning about unused mount_open variable
12 years ago
rmackay9
b13264c884
AP_InertialNav: reanme AP_InertialNav and ThirdOrderCompFilter classes to resolve desktop build compiler errors
12 years ago
rmackay9
61dd405910
AP_InertialNav: removed IMU.h to fix compiler error from example sketch
12 years ago
rmackay9
5f34d41b59
ThirdOrderCompFilter3D: fix compiler error
12 years ago
rmackay9
1c7118a2d1
AP_Baro: added get_last_update which returns the time the barometer sensor was last read
12 years ago
rmackay9
d9b4407e64
AP_InertialSensor: changes after review with Tridge.
...
sanity checking added to accelerometer calibration routine.
user feedback is sent using gcs_send_text_fmt instead of Serial.printf.
moved ins parameters to new eeprom number to avoid conflicts with older parameters.
other small changes including renaming of functions and parameters.
12 years ago
rmackay9
68bdf93a4d
APM_Control: move reliance from IMU to INS
12 years ago
rmackay9
7f190b8494
AP_InertialNav: first implementation of inertial nav library
12 years ago
rmackay9
dc7146c9ce
ThirdOrderCompFilter3D: first implementation of complementary filter for use with inertial navigation
12 years ago
rmackay9
48f1955f8e
AP_Buffer: initial implementation of FIFO buffer for use with inertial nav
12 years ago
rmackay9
83ae8e47be
AP_AHRS: replace IMU with INS and add roll and pitch trim
12 years ago
rmackay9
49de46a548
AP_InertialSensor: merge in calibration features from IMU library
...
add gauss-newton method of accelerometer calibration
12 years ago
Andrew Tridgell
403721f8ca
AP_AnalogSource: allow for the 'NONE' pin in Arduino ADC
...
This allows us to have a configuration parameter for a pin which
defaults to -1, meaning not to read a pin at all. It will always
return 0
12 years ago
Andrew Tridgell
736cb4c34b
AP_Var: move the MetaClass lib into AP_Var
...
AP_Var is the only one that uses it, and it generates warnings in our
build if we leave it in AP_Common
12 years ago
Andrew Tridgell
cd0672ce94
SITL: set a reasonable number of satellites in simulated uBlox
12 years ago
Andrew Tridgell
fe47990dab
AP_AHRS: removed the 6 sats min
...
this would put us into dead-reckoning mode
12 years ago
Andrew Tridgell
f58abb7550
RC_Channel: added pwm_to_angle_dz() function
...
will be used by k_aileron in APM
12 years ago
Andrew Tridgell
ef919c4e36
AP_Param: fixed a bug with setting nested parameters
...
This bug meant that setting a parameter in a parent class for a doubly
nested parameter group, where the parameter index in the parent class
is 4 or greater would actually set the first element in that parent
class.
At the moment only one parameter fits these narrow constraints - the
RCn_DZ element of the RC_Channel_aux class. So if someone set RC5_DZ
to 17 in ArduPlane it would actually set RC5_MIN to 17.
12 years ago
Andrew Tridgell
d57566ad0e
RC_Channel: removed set_filter() and scale_output
...
these unused options were costing 5 bytes per channel, for a total of
50 bytes on ArduCopter
12 years ago
Andrew Tridgell
6a24bdec05
AP_AHRS: require at least 6 satellites to use the GPS for velocity
...
logs of a recent flight show the velocity estimate can be very poor if
the GPS can see 5 satellites or less
12 years ago
Andrew Tridgell
984b1086cb
AP_GPS_UBLOX: ask for nav settings every 20 seconds
...
this ensures we don't run with the wrong nav settings on a uBlox if
we get a bad checksum on the initial nav settings message
12 years ago
Andrew Tridgell
72e97c6dfc
AP_GPS: start detection timer on first bytes
...
this prevents a uBlox plugged in late from being detected as a NMEA
GPS
12 years ago
Andrew Tridgell
6f9fa7d3b3
AP_GPS: removed shadowed class variable _nav_setting
...
this caused a uBlox to incorrectly configure as "portable" instead of
airborne if the detection took more than 2 seconds. That led to
terrible performance.
12 years ago