Commit Graph

62 Commits

Author SHA1 Message Date
jasonshort 73be185414 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
rmackay9@yahoo.com f5d17f756a 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 df6a1b51f3 make a lot more functions and variables static
this saves about 1k of code space through better compiler optimisation

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2889 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 10:32:00 +00:00
tridge60@gmail.com f9105a056e logging: moved the default log_bitmask calculation to compile time
this saves a little bit of code by moving the calculation of the
default log bitmask to compile time from runtime

(merge from APM)

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2887 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 10:31:17 +00:00
tridge60@gmail.com 8a7466d1a2 make it possible to completely disable logging
set LOGGING_ENABLED  to DISABLED to disable all logging. This saves
about 10k of flash when disabled.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2886 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 10:31:07 +00:00
tridge60@gmail.com 855b88852e fixed a bunch of compiler warnings
mostly signed/unsigned warnings

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2884 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-17 10:30:21 +00:00
jasonshort 35bf288abd New PIDs - I rewrote the control laws from scratch to add a PI Rate function. The end result should fly nearly identically to the current version. The nice detail is that we can use NG PID values for easy transition!
Before: ->  After
Stabilize P –> Stabilize P (Use NG values, or 8.3 x the older AC2 value)
Stabilize I –> Stabilize I (Stays same value)
Stabilize D –> Rate P (Stays same value)
–> Rate I (new)
 
Added a new value – an I term for rate. The old stabilization routines did not use this term. Please refer to the config.h file to read more about the new PIDs.
Added framework for using DCM corrected Accelerometer rates. Code is commented out for now.
Added set home at Arming.
Crosstrack is now a full PID loop, rather than just a P gain for more control. 
Throttle now slews when switching out of Alt hold or Auto modes for less jarring transitions
Sonar and Baro PIDs are now combined into a throttle PID Yaw control is completely re-written.
Added Octa_Quad support - Max



git-svn-id: https://arducopter.googlecode.com/svn/trunk@2836 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-11 00:47:08 +00:00
deweibel@gmail.com 0df8daeaed Correct bug in CLI log "enable all" command.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2733 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-03 01:58:41 +00:00
jasonshort a7a4f999e3 AC 2.0.32 Beta
new Loiter PIDs
tuned down control on standard frame
shunk the mixing range for sonar from 3 meters to 2 meters
added framework for Guided mode - not tested!
removed pitch and roll deadzone
decoupled SIMPLE mode from LOITER PIDs
Synced Mavlink with APM
Logs report correct WP number now.
disabled Sonar spike filter.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2722 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-02 22:44:59 +00:00
jasonshort d2ce6ebf8d 2.0.26
minor updates, 
Arming motors now for only Stabilize, Simple, and Acro Modes.
V Octo Support


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2657 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-24 04:37:54 +00:00
jasonshort b69012803d log merge with APM
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2568 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-16 17:12:10 +00:00
jasonshort cb168c399d AC2.0.24b
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2567 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-16 17:03:26 +00:00
jasonshort 9abd8c6336 Big update from Field testing.
Includes updated motor tests. These need to be verified.
Nav loiter D was added (.03) - verify this helps.
Nav_lat is now filtered for Rate control. This is to keep jerky pitching to a minimum.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@2448 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-31 05:29:06 +00:00
jasonshort c66611cceb minor formatting
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2441 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-30 04:24:07 +00:00
jasonshort f747e39062 Better sonar hold ++
added mag calibration - still not sure if needed.
better sonar spike filter
2.0.19

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2434 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-29 19:32:55 +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 ee67f964a1 Added back in Mag offsets in CLI. Don' t know if it works yet!
removed CH_3 refs in Tri, fixed Yaw repoting bug for unsigned int

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2406 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-27 04:59:01 +00:00
jasonshort 1ff40b053a Log FIx
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2402 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-26 01:50:32 +00:00
jasonshort 78f02b51a0 updates to get alt hold from 2.0.7.
Cleanups, better logs for Alt hold, yaw debugging
I tuned up Hein's Hexa Yaw. I think we may need to adjust Yaw gains based on Frame type.
Crossing fingers, the next rev is the final.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2381 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-23 05:53:00 +00:00
jasonshort 855761a4ef Minor log formatting
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2379 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-22 06:23:10 +00:00
jasonshort b76745470d 2.0.8 - Mavlink fixes. Works much better now with M.Oborne's planner
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2378 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-22 02:49:57 +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 0617d58d4f Fixed bad output of GPS ground course.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2318 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-16 05:28:20 +00:00
jasonshort 41fc9d60ca Log_Read_Startup removed
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2306 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-15 22:36:41 +00:00
jasonshort 93b187333c Alignment with APM
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2293 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-15 17:42:32 +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 40e22316ce log NTUN missing \newline
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2258 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-14 01:28:58 +00:00
jasonshort 0629bb01b8 Logging updates
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2250 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-12 21:37:38 +00:00
jasonshort 411ba90742 Added missing comma
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2246 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-12 02:13:56 +00:00
jasonshort a0d9c52d87 Mavlink Sync with APM
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2235 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 17:40:32 +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 e7606a3a82 Fix compile error
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2232 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 10:54:50 +00:00
jasonshort 7d38020d5f re-org'ed the logs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2231 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-09 04:16:58 +00:00
jasonshort 08a7e02864 Final changes for Beta release
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2180 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-07 19:41:55 +00:00
jasonshort 6510b8df5a minor cleanup based on compiler warnings.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2122 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-07 00:21:16 +00:00
jasonshort dc45d3e8c4 Added throttle_integrator
Removed cos for nav_rate testing.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1934 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-30 16:01:57 +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 62c123f6df Minor Yaw update, Log adjustment,
Main loop slightly faster at 125 hz


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1912 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-20 06:44:49 +00:00
jasonshort 757a25553d updated Logs to give me better Yaw information
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1910 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-20 04:58:43 +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 7ed78fd40b Better CTUN Logging
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1890 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-16 20:39:56 +00:00
mich146@hotmail.com 27e69d73d5 ACM mavlink update/log fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1881 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-15 13:24:05 +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 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 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 f0458631a3 added send_text_P()
this merges the send_text_P() updates from APM

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1788 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:14:15 +00:00