Commit Graph

3196 Commits

Author SHA1 Message Date
Andrew Tridgell dd26ef3089 dataflash: reworked classes to move most code to parent class
this moves all the non-hardware specific code to the parent
DataFlash_Class class, keeping the hw specific code much smaller and
simpler.

This should prevent discrepancies creeping in between APM1 and APM2
support again
2011-12-26 19:17:11 +11:00
Andrew Tridgell d09c344ab8 APM-log: fixed reading of GPS logs 2011-12-26 19:17:11 +11:00
Andrew Tridgell cb48bfd054 ACM-log: use DataFlash.df_NumLogs
this fixes the flash size on APM2
2011-12-26 19:17:11 +11:00
Andrew Tridgell 94cbbf6f28 APM-log: changed to use df_NumPages
this copes with different data flash sizes on APM1 and APM2
2011-12-26 19:17:11 +11:00
Andrew Tridgell 8bf05982ae dataflash: fixed APM2 flash logging
we had log wrap disabled on APM2, and also had the wrong log size. The
mainline code assumed 4096, but it is 8192 pages long.
2011-12-26 19:17:11 +11:00
Andrew Tridgell df0d151891 MPU6000: change to 98Hz low pass filter
based on recommendation from Pat
2011-12-26 19:17:11 +11:00
Andrew Tridgell 3ef707a2c3 MPU6000: use data ready interrupt to prevent stale data
We listen for a data ready interrupt and only read new data in read()
if there is new data
2011-12-26 19:17:11 +11:00
Andrew Tridgell 71e08f8484 fixed the MPU6000 test sketch 2011-12-26 19:17:11 +11:00
Randy Mackay 85167be181 TradHeli - modified the default collective min/max values to restrict movement to about half the full range. 2011-12-26 16:59:01 +09:00
Jason Short a4e00f7459 Tweaks to fix Loiter
Changed save location to int32
added some filtering and smoothing
2011-12-25 15:44:49 -08:00
Randy Mackay af121c492d Merge remote-tracking branch 'origin/master' 2011-12-25 12:34:16 +09:00
Randy Mackay c3ea1ca5dc AP_GPS - updated MTK rate to 10Hz and fixed lat/lon printing inaccuracy in Arducopter logs and AP_TEST example sketch 2011-12-25 12:33:06 +09:00
Andrew Tridgell 7c0f39aec5 added MPU6000 test sketch
this doesn't work yet - Pat, any idea why?
2011-12-25 12:03:39 +11:00
Doug Weibel 7779dff355 Correct a bug in throttle failsafe feature 2011-12-24 15:34:31 -07:00
Doug Weibel c40093a1a7 Remove old debug print 2011-12-24 14:26:35 -07:00
Doug Weibel 4009018167 Fix scaling on "turn coordination" yaw PID so that P gain values fall in "usual" range 0.1 to 10. 2011-12-24 14:26:35 -07:00
Michael Oborne ae5713b251 firmware build 2011-12-24 16:06:00 +08:00
Andrew Tridgell da87622a5f removed "Please run setup" loop from ArduCopter
Chris asked for this to be removed as it was really mucking up the
initial experience setting up ArduCopter via the planner
2011-12-24 18:12:51 +11:00
Andrew Tridgell 09c97bb367 removed dead test program
this one doesn't build, and has been replaced by IMU_MPU6000_test
2011-12-24 18:11:04 +11:00
Jason Short 9e6ea0b167 disabled some tests with warnings 2011-12-23 18:54:38 -08:00
Jason Short 359d186798 added define for optflow 2011-12-23 18:45:01 -08:00
Jason Short bf29f09107 Getting rid of Simple Logging 2011-12-23 18:44:30 -08:00
Jason Short c9a30ccf1f Made WP radius 1 by default 2011-12-23 15:01:53 -08:00
Jason Short f2d6708058 Fixed merge issues 2011-12-23 14:51:40 -08:00
Jason Short a40a026220 added ability to enter Loiter with only optflow available 2011-12-23 14:46:32 -08:00
Jason Short da903d2c3e moved some defines around 2011-12-23 14:46:32 -08:00
Jason Short c8ca841bd7 Fixed resolution issue with Xtrack
Added stub for loiter based on estimation
integrated fix for tracking GPS at slow speeds for loiter
2011-12-23 14:46:32 -08:00
Jason Short ce11f48809 This is the test to deal with big props with lots of inertia. We use a low pass filter on positive acceleration. 2011-12-23 14:46:32 -08:00
Jason Short fa2fa37f3b initing z dampener at arming 2011-12-23 14:46:08 -08:00
Jason Short 8aa6429b1e Too complicated 2011-12-23 14:46:08 -08:00
Jason Short 778c9cd1db added back in the Disabled log - gave up on Log Simple idea 2011-12-23 14:45:56 -08:00
Jason Short 7963a73816 used for testing 2011-12-23 14:42:50 -08:00
Jason Short f892e0b00d increased crosstrack thanks to float math fix
decreased loiter iterm, decreased throttle iterm based on simulator runs
2011-12-23 14:42:50 -08:00
Jason Short 7820d96f4c No longer blocking before initing home 2011-12-23 14:42:50 -08:00
Jason Short dc2103d67f the second accel test is just for fun.
Filtered output for Nav_throttle
2011-12-23 14:42:50 -08:00
Jason Short 6c5f41fe58 Begin to better integrate OptFlow, added necessary globals for Loiter estimation 2011-12-23 14:42:50 -08:00
Jason Short 885548e693 removed some unneeded HIL #defines 2011-12-23 14:42:49 -08:00
Jason Short 244f683ed9 Added more detail 2011-12-23 14:42:49 -08:00
Jason Short 8084d77a5f Added fix for Takeoff Test 2011-12-23 14:42:49 -08:00
Andrew Tridgell 9f089f3b0e added a copy of fdpexpect 2011-12-23 12:20:58 +11:00
Andrew Tridgell e88a8e2519 more errno fixes for MacOS 2011-12-23 12:07:32 +11:00
Andrew Tridgell 3f2d1764b6 fixed errno handling for MacOS 2011-12-23 11:59:25 +11:00
Andrew Tridgell 66029af574 setup the main loop failsafe after RC library is setup 2011-12-23 11:13:01 +11:00
Andrew Tridgell f7dda9f413 added comment on using GPS ground course 2011-12-23 11:13:01 +11:00
Pat Hickey 343228c8cc Log_simple uses identical implementation of do_erase_logs.
* fix build1280.ArduCopter
2011-12-22 13:31:28 -08:00
Pat Hickey 4a53c4e795 APM_radio_test: build fixes 2011-12-22 13:17:04 -08:00
Michael Oborne de0c58d084 APM Planner 1.1.13
hazy's capm change - modded
fix wp radius at odd rotations
small geofence map update changes
fix terminal focus
2011-12-22 22:33:05 +08:00
Andrew Tridgell 968ad78df0 APM2: default magnetometer to enabled
all APM2s have a MAG at the moment

thanks to Chris for the suggestion
2011-12-22 17:51:14 +11:00
Andrew Tridgell ef3c5c071a failsafe: make sure we clear any RC override in manual failsafe 2011-12-22 10:55:43 +11:00
Andrew Tridgell 9892886994 fixed typo in fly_simple() 2011-12-22 10:25:31 +11:00