jasonshort
75114aa93f
hack to fix Motor lights when arming after init.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3100 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:54:29 +00:00
jasonshort
6b2139221d
Added experimental rate based Loiter and revised RTL. You need to compile with the loiter option set to 1 in APM_Config to try.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3099 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:18:32 +00:00
jasonshort
c95bb66441
cleared out APM_Config
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3098 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:15:42 +00:00
jasonshort
d192ceb8f8
upped D filter to 6
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3096 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 05:44:29 +00:00
jasonshort
312c0e6b3b
removed throttle_slew - Just wasn't working well enough and added too much complexity
...
moved reading sonar to the 50hz loop so the Mode filter could do it's thing without causing so much latency
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3094 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 02:30:37 +00:00
jasonshort
bfa7cc2cb5
lowered error limit to try and reduce RTL dropping from sky.
...
removed minimum for RTL nav speed to see it's Loiter potential (rate based Loiter)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3093 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:51:35 +00:00
jasonshort
56d8da0381
commented out home.alt since it's always 0
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3092 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:49:20 +00:00
jasonshort
900d0c1819
fixed missing %d in CTUN
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3091 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:45:00 +00:00
tridge60@gmail.com
0bf026e6ad
Compass: added a gain multiplier
...
this adjusts the calibration based on the change in gain between
calibration and runtime
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3090 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 10:39:11 +00:00
rmackay9@yahoo.com
37dd9ac144
TradHeli - fixes to use single PI controller for roll, pitch and yaw (when using an external tail gyro)
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3089 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 09:37:01 +00:00
tridge60@gmail.com
e95d0eb686
added SET_MAG_OFFSETS magnetometer message
...
this allows reset of the mag offsets without wiping your EEPROM
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3088 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 09:00:21 +00:00
tridge60@gmail.com
ab04055c35
Compass: several fixes to compass calibration code
...
this changes the calibration code to require at least 5 good reads
from the compass during initialisation. The calibration is taken as
the average of the 5 values.
This also fixes the expected values for the 3 axes for the 5883 to
match reality.
We also save a bit of code space by adding a common rotate_for_5883L()
routine.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3087 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 08:17:25 +00:00
tridge60@gmail.com
eefb840a85
MAVLink: added missing files from recent update
...
thanks to Randy for spotting this
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3086 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 06:30:29 +00:00
tridge60@gmail.com
5836e27813
we don't have a separate 5883L driver any more
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3085 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 06:30:13 +00:00
tridge60@gmail.com
88cd556c8d
Compass: we don't need MAG_PROTOCOL any more
...
we only have one mag driver now
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3084 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 05:10:19 +00:00
tridge60@gmail.com
c860fd736a
Compass: removed the old 5883L driver
...
we now use a single driver for both mags
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3083 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 05:09:58 +00:00
tridge60@gmail.com
5c68a04c5d
PID: fixed an uninitialised variable
...
we did not initialise derivative to zero
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3082 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:46:21 +00:00
tridge60@gmail.com
b1df1d1843
ModeFilter: fixed a shadowed variable
...
mode is a member of the class already, so call the local variable
fmode
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3081 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:46:10 +00:00
tridge60@gmail.com
6cf66ee773
MAVLink: pull in latest changes from upstream MAVLink
...
this gives us the new SENSOR_OFFSETS message for debugging sensor
calibration
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3080 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:45:48 +00:00
jasonshort
74dfb3ff2a
Added a generic Sin and Cos look table. Not sure if it works yet as a library.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3075 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-11 22:31:15 +00:00
tridge60@gmail.com
a604e30c7c
cope with double initialisation of the compass
...
if we've already initialised, then the orientation matrix will already
be right
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3072 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-10 14:07:15 +00:00
tridge60@gmail.com
6ca3a2b359
compass: set the orientation of compass before compass.init()
...
the compass.init() code uses the orientation when calculating the
calibration. We need to use the right orientation.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3071 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-10 12:52:53 +00:00
tridge60@gmail.com
7d58916a9d
compass: add a small delay in compass init
...
this adds a 50ms delay after setting the compass gains before reading
the compass. Added as paranoia after some strange results on a 5843
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3070 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-10 12:47:25 +00:00
jasonshort
8715ed3bd7
2.0.39
...
added callback to the test functions… not sure if this is the correct thing to do.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3050 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-08 22:20:50 +00:00
jasonshort
b7ce6e036e
2.0.39
...
Change the way Rate nav works. we now take into account both forward *and lateral* rates. The signs may be backward so be careful! Let me know if the quad shoots off to one side and I'll flip the signs.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3049 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-08 16:54:56 +00:00
rmackay9@yahoo.com
d02d4b895c
AP_OpticalFlow - small but important fixes for position calcs
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3040 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-07 13:19:18 +00:00
rmackay9@yahoo.com
51a9c52d58
ACM - changed default lens for optical flow
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3039 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-07 13:15:19 +00:00
mich146@hotmail.com
88d59ccc2d
perl version of eedump
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3037 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-07 10:36:31 +00:00
jasonshort
1ac8e0a75f
2.0.39
...
added a define to make compilation optional
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3031 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 17:09:27 +00:00
jasonshort
de191b7bee
2.0.39
...
Cleanup and removed some old tests to save data flash.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3030 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:47:44 +00:00
jasonshort
99a327ccbf
2.0.39
...
Moved the motors based on feedback from Max Levine. See Wiki for details.
Simplified the CUT_MOTORS section of the code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3029 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:46:46 +00:00
jasonshort
4752468730
2.0.39
...
Simplified the CUT_MOTORS section of the code.
Added Stability patch
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3028 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:45:51 +00:00
jasonshort
3e8ca40d7d
2.0.39
...
Simplified the CUT_MOTORS section of the code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3027 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:44:42 +00:00
jasonshort
64932a4e75
2.0.39
...
New order for motors!! Based on Hein's testing. See Wiki for updated layouts
Simplified the CUT_MOTORS section of the code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3026 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:44:22 +00:00
jasonshort
87a015b205
2.0.39
...
Simplified the CUT_MOTORS section of the code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3025 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:43:44 +00:00
jasonshort
e7a87006b0
2.0.39
...
New hex a motors_out with Tridge's stability patch.
Simplified the CUT_MOTORS section of the code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3024 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:43:16 +00:00
jasonshort
04e05604a5
2.0.39
...
added defines for CH7 behavior - DO_FLIP 1, DO_SET_HOVER 0 (Default)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3023 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:22:43 +00:00
jasonshort
b931bfaf50
2.0.39
...
added defines for CH7 behavior
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3022 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:21:55 +00:00
jasonshort
a8445483f3
2.0.39
...
added defines for CH7 behavior, Tweaked Loiter config based on testing by Jack.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3021 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:21:21 +00:00
jasonshort
0bea96c3d0
Added Jose Julio's Flip code, edited to work with AC2. Never flown or tested!
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3020 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:19:06 +00:00
jasonshort
9e1bea4797
Added Jose Julio's Flip code, edited to work with AC2. Never flown or tested!
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3019 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 16:17:26 +00:00
james.goppert
c7d2a71fea
Updated GCS_MAVLink to match mavlink master.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3017 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-05 08:18:08 +00:00
rmackay9@yahoo.com
c49bb03ba3
TradHeli - mounting plate correction to remove duplicate line in design file
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3006 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-03 11:40:46 +00:00
tridge60@gmail.com
2da62b8a3e
fixed PSTR() on motor arm messages
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3004 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-02 13:34:27 +00:00
tridge60@gmail.com
11cee834b2
re-added ARMING messages in HIL mode
...
this is useful as in HIL mode you don't always have blinking lights
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3003 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-02 13:25:58 +00:00
jasonshort
76972a265a
2.0.39
...
Returned to previous log version for sonar messages to fix the cosmetic bug in the planner
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3000 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 22:01:25 +00:00
jasonshort
e60b2ac07e
2.0.39
...
Made the Yaw on RTL always on for Helis
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2999 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 22:00:26 +00:00
jasonshort
07e2ad1c50
2.0.39
...
Defaulted all values
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2998 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 21:56:22 +00:00
tridge60@gmail.com
9fa60889dd
added SERIAL3_BAUD parameter
...
this is the real baud rate divided by 1000. So 57600 is set as 57
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2997 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 11:39:17 +00:00
tridge60@gmail.com
366b20bb9f
MAVLink: send streams on both mavlink interfaces
...
when doing init the user may be on the Xbee port
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2996 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 10:08:59 +00:00