Commit Graph

77 Commits

Author SHA1 Message Date
jasonshort 1d21056f21 2.0.18
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2433 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-29 04:02:01 +00:00
jasonshort 85fde4a6cf Better Yaw P values, better Sonar hold values.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2429 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-28 06:52:56 +00:00
jasonshort eda421e8ea Alt Hold updates
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2405 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-26 19:57:19 +00:00
jasonshort 8088f24427 Yaw updates. 2.0.13
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2403 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-26 05:58:17 +00:00
jasonshort 2a53e35ac7 2.0.12 Very small Yaw Iterm added. reverted to earlier Loiter limit.
Slight tweak to Alt hold.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2397 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-25 05:48:33 +00:00
jasonshort bd69d3f014 Adjusted gains for alt hold.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2393 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-24 04:58:53 +00:00
jasonshort 2118931cdc Added resetting of Loiter location based on stick input. Fly it to a location and let it stick.
Added Octo Support
Fixed Loiter issue regarding Yaw towards loiter location
Added Yaw control alternative for testing
decreased Yaw deadband to +-5°
revved to 2.0.10



git-svn-id: https://arducopter.googlecode.com/svn/trunk@2389 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-24 02:14:18 +00:00
jasonshort c0ae14cc5c Minor Gain fix. Roll and Pitch were sligtly different. Not enough to merit any point revision.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2383 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-23 19:33:18 +00:00
jasonshort bc5b3caa58 lowered Yaw D value
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2368 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-21 06:50:46 +00:00
jasonshort 707210a514 Disabled I term for yaw. not working right.
Changes log step default to zero by recommendation from John C. Not sure why it works, Compiler should init to 0 by default.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2362 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-20 17:08:04 +00:00
jasonshort 9241691b44 trying to improve Yaw issues. Enabled I term for yaw. This was mistakenly Imaxed to 0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2359 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-20 05:33:35 +00:00
jasonshort 89714078dc Minor adjustments to Loiter behavior.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2357 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-20 05:23:12 +00:00
jasonshort acdba5bfd7 2.0.6 Beta updates. Frame options + X moved to AP_Var.
Updated nav code.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2345 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-18 23:38:24 +00:00
jasonshort 5489585ae3 separated the PID values based on chosen Nav PID, Temporary until we get rate control tested.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2337 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-16 15:55:32 +00:00
jasonshort 9153e448db kD for WP nav does not seem to be doing anything but causing trouble.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2323 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-16 05:48:25 +00:00
jasonshort 73129c52b9 Some nice updates to Rate based nav according to the simulation.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2316 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-16 04:59:06 +00:00
jasonshort 164b93479c Moved PitchMax back to 18°
raised the Yaw deadband.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2305 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-15 22:34:10 +00:00
jasonshort 8f17f95cbc Moved motors to individual files.
updated motor setup test to be sequencial pulses of the motors in CW order.
Fixed Mission scripting logic
fixed Free yaw error in neutral throttle
fixed D term issue with Baro hold - was too high
incremented firmware revision, removed frame var
removed setup show from startup
removed unused EEPROM functions
fixed broken demo mission
fixed non working loiter with delay



git-svn-id: https://arducopter.googlecode.com/svn/trunk@2275 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-15 02:02:09 +00:00
jasonshort 5ca72eb8b2 better Baro hold - Baro_KD was way too high.
Clean up with WP processing
moved crosstrack call to more logical location

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2259 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-14 04:30:42 +00:00
jasonshort fe9243285b Slight increase to loop speed - for Max
removed throttle integrator until I have more time to deal with the data
tweaked control loops to be more like RC1 for Max to try. They fly great BTW
tweaked config to be more better.
Mavlink - only cosmetic tweaks

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2254 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-13 19:29:45 +00:00
jasonshort 0979876ccc Added APM's current sensing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2234 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 15:46:56 +00:00
mich146@hotmail.com 6edb299243 AC2 - Mavlink on 2 ports
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2233 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 12:20:22 +00:00
analoguedevices@gmail.com f85edbee36 typo fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2227 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 02:40:01 +00:00
analoguedevices@gmail.com d488c1bf58 Reverting assignment of MAVlink to Port 3 because it kills MAVLink on Port 0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2226 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 02:38:36 +00:00
jasonshort 3cfd3bc527 Added port 3 for Mavlink.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2220 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-08 17:48:54 +00:00
jasonshort d858b17ebd Fixed Rate navigation
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2090 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-05 05:19:45 +00:00
jasonshort e40c966752 removed D term for rate control for now. It may have been messing things up.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2077 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-03 05:24:48 +00:00
jasonshort bc7c797fd6 added baro_alt_offset back in. Filtering out the effect over time.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1925 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-28 05:43:35 +00:00
jasonshort 2ba41bb374 refinements to nav
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1922 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-27 05:08:24 +00:00
jasonshort 121cf0f658 Warning!!! The recent build 1919 was tagged as sparkfun.
The trunk is unstable, so please be careful. I've made a lot of changes based on the Sparkfun challange. Most include how we handle things like altitude, but the mission scripting has also been updated as well.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1920 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-25 05:12:59 +00:00
jasonshort 16412abbde added a bit of kI term for Yaw hold.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1918 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-22 21:15:17 +00:00
jasonshort 69b0ae329e Navigation bug fixes, tuning.
better handling of sonar at angles and baro mixing. - optimized for flats.
Crosstrack test bug found and fixed.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1916 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-21 23:07:31 +00:00
jasonshort a8b7505268 Lots of little things. Yaw control is updated based on Jani's logs. Thanks!
Takeoff now works well.
better logging.
tuned down kD for Yaw - was causing some bad behavior.
Auto mission now resets when entering mode.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1914 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-21 05:15:45 +00:00
jasonshort fe6e0d2f44 Yaw fix,
Logs updated to do better Yaw Debugging
Landing is now rate limited
updated command desctiption.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1911 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-20 05:37:05 +00:00
jasonshort f6f5a0c8dd Added rudimentary tuning with CH6. Assign this to your Flaps knob on your radio. in APM_config.h set your desired option, then upload. The knob will adjust the value in real time. Enter the CLI and run test, tune to see the output value.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1902 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-17 23:08:16 +00:00
jasonshort 0db3f100cc Reworking Yaw some more. Yaw is testing really well with this version.
I have moved Pitch_Max to a different part of the code. It was limiting SIMPLE mode which was bad. Now it only limits in Auto modes, RTL, LOITER, etc.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1899 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-17 05:17:42 +00:00
jasonshort e9702efada lowered Pitch max for nav
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1894 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-16 20:42:59 +00:00
jasonshort c5959f0e46 Yaw offset for simple mode now recorded when Arming motors each time.
Yaw behavior has been re-worked and seems to be fixed now. Works fine in my shop.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1882 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-15 16:45:47 +00:00
jasonshort 2c3f6052db Altitude control fix - trying to go higher would make alt hold reset to 0
Yaw fix, 
improved PID defaults
potential logging fix


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1877 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-13 16:33:06 +00:00
jasonshort c8c8d2cde2 fixes a yaw Rate issue.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1873 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-11 05:15:22 +00:00
jasonshort 828f0b0443 removed the throttle min max settings for user config.
turned off altitude interpolation for now.
removed the "Dampener" setting in config. Using less confusing kD instead.
removed throttle_cruise reset in events.pde for RTL - would cause a crash.
added I term for pitch/roll for when flying greater than 20°

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1868 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-10 20:31:33 +00:00
jasonshort 5d63a05de7 added better value for Sonar minimal value for landing
removed FBW mode - no longer needed
added set_throttle_cruise_flag to auto set the throttle value for alt hold
added altitude minimum option for waypoints
added support for relative WPs
added support for Yaw tracking per WP in options bitmask

lowered default sonar kD value
increased minimal value to set the throttle cruise value with CH7 switch
updated README.txt
added additional stock test missions available in CLI


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1856 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-08 19:13:31 +00:00
jasonshort f8b0c61e63 updates - support
new test mission  - Liftoff, spin, land
updated scripted Yaw control

Public Beta candidate...

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1814 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-26 06:35:52 +00:00
tridge60@gmail.com 28e363b634 undid accidentical commit of local changes
sorry about that!

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1806 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:35:54 +00:00
tridge60@gmail.com c8fd23ac45 allow configuration of motor arming condition
This allows the user to configure their own motor arming condition in
APM_Config.h. For example, the user could set it up for MODE1
transmitters, by using:

 #define MOTOR_ARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in > 2700)
 #define MOTOR_DISARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in < -2700)

You could also set it up to use the "throttle cut" switch on a
transmitter, by mapping that to a spare channel.

The default (throttle minimum and maximum/minimum yaw) is the same as
it was before

This patch also adds reporting of motor arming to the GCS, which can
be useful for testing.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1802 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:30:38 +00:00
tridge60@gmail.com d70703aa62 disabled tabs in emacs formatting markers
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1790 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:20:11 +00:00
tridge60@gmail.com f9469507c0 make it possible to enable RC override on non-HIL setups
this makes it possible to allow a GCS to override RC input values for
non-HIL setups. This gives a way for a GCS to set an arbitrary switch
value, or set a precise PWM value for any control.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1789 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:18:21 +00:00
jasonshort 41c9b1edd7 Update to get SIMPLE mode running.
Seems to work!

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1774 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-15 05:54:48 +00:00
jasonshort e5fe9231f3 alignment with APM 2.0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1772 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-13 06:25:38 +00:00
jasonshort 1cc6ba3da9 Added break feature on yaw control. Please verify it works properly before flying.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1753 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 17:19:38 +00:00