Commit Graph

470 Commits

Author SHA1 Message Date
tridge60@gmail.com 19d2195ea3 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
jasonshort 3a222a9fa2 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 509447904e 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 9b9402a264 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
jasonshort 1e48fd8952 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 2129194338 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 7c8b0ea9bf 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 f27929bf78 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 edc35b2cee 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 25e129fb05 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 1cda03037c 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 254674aedd 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 1316b58ef0 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 834de9f6c7 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 6748ffd112 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 10e2eb3571 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 a78b057cec 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
tridge60@gmail.com b062e8e6f8 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 4dc9de81a3 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 07b8d0dfe5 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 6c75a03230 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 10d769a1d2 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 12785f6682 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 261c7edec9 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
tridge60@gmail.com 5f9c03ca77 re-apply DEFAULT_LOG_BITMASK patch
Jason, I assume you removed this patch accidentially

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2995 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 10:06:15 +00:00
tridge60@gmail.com 022314ed4c process MAVLInk packets during gps detection and IMU calibration
this allows the GCS to connect immediately on startup

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2994 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 08:08:52 +00:00
jasonshort 1e915aae2b 2.0.39
Added reset for all nav I when entering manual modes.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2992 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 05:12:10 +00:00
jasonshort d70055398b 2.0.39
Added extra groundstart init for the Ground Station

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2991 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 04:47:15 +00:00
jasonshort cdfa3b07cb 2.0.39
Changed how the throttle_slew was added to the output.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2990 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 03:48:16 +00:00
jasonshort a0f61fd29e 2.0.39
Added a limiter to Throttle_slew to not make the throttle go past 800.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2989 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-01 03:39:44 +00:00
jasonshort f04436e68b 2.0.39
mistake on the defaults for kP - not symmetrical.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2985 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 20:09:27 +00:00
jasonshort cc054a7fac 2.0.39
mistake on the defaults for kP - not symmetrical.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2984 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 20:06:36 +00:00
jasonshort 738d5db914 2.0.39
limit RTL to 35°

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2983 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 19:57:35 +00:00
jasonshort 05122be463 2.0.39
small change to RTL to prevent negative effects from flying backwards.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2982 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 19:42:07 +00:00
jasonshort b2a47c01a7 small change to RTL to prevent negative effects from flying backwards.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2981 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 19:41:11 +00:00
mich146@hotmail.com bcc7bed491 fix hil build
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2970 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-31 01:24:20 +00:00
jasonshort 82e51aec82 Big update 2.0.38
moved ground start to first arming
added ground start flag
moved throttle_integrator to 50hz loop
CAMERA_STABILIZER deprecated - now always on
renamed current logging bit mask to match APM
added MA filter to PID - D term
Adjusted PIDs based on continued testing and new PID filter
added MASK_LOG_SET_DEFAULTS to match APM
moved some stuff out of ground start into system start where it belonged
Added slower Yaw gains for DCM when the copter is in the air
changed camera output to be none scaled PWM
fixed bug where ground_temperature was unfiltered
shortened Baro startup time
fixed issue with Nav_WP integrator not being reset
RTL no longer yaws towards home
Circle mode for flying a 10m circle around the point where it was engaged. - Not tested at all! Consider Circle mode as alpha.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2966 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-30 20:42:54 +00:00
mich146@hotmail.com 4dfce5d860 Fix Hil build on 2560
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2961 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-30 01:39:12 +00:00
jphelirc e783246380 fixed defaults
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2944 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-26 03:44:16 +00:00
jphelirc f2d3c0a246 added relay control to CH6
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2943 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-26 03:37:41 +00:00
tridge60@gmail.com 580f981d30 fixed quad PWM clipping
this adopts the simpler approach suggested by Jason.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2936 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-22 21:25:59 +00:00
mich146@hotmail.com 87a260656e fix float issues - crosstrack & target alt
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2935 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-21 23:36:22 +00:00
rmackay9@yahoo.com 739a69c988 ACM - partial integration of optical flow sensor
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2934 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-21 23:14:53 +00:00
tridge60@gmail.com 7ae9a53d41 quad: fixed the clipping of PWM outputs
when we clip a motor output we need to decrease the opposite motor by
the same amount, otherwise we lose the ability to control the quad
when the servo outputs are extreme

Found using the quad HIL test. Thanks to Jani for testing this on a
real quad!

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2929 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-20 00:33:04 +00:00
tridge60@gmail.com e14d0df898 HIL: fixed build with HIL and logging
thanks to Jani for noticing this

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2925 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-19 10:51:07 +00:00
tridge60@gmail.com 9d9d82b222 HIL: we only need 50Hz attitude for HIL
putting it in the fastest loop clogged up mavlink too much

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2923 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-19 09:49:57 +00:00
tridge60@gmail.com a4cf3bf87c HIL: fixed altitude calculation
ACM uses a zero home altitude, so we need an offset when using GPS for
altitude

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2910 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-18 12:44:02 +00:00
jasonshort a0d599ad95 2.0.37
Added rate of change limit for noisy Sonars.
converted to static functions - Tridge
New Throttle PIDs from Jack

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2904 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 19:14:23 +00:00
jasonshort c741392434 2.0.37
Added rate of change limit for noisy Sonars.
converted to static functions - Tridge


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2902 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 19:08:29 +00:00
jasonshort f486d84271 2.0.37
Added rate of change limit for noisy Sonars.
converted to static functions - Tridge


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2901 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 19:08:17 +00:00