Commit Graph

235 Commits

Author SHA1 Message Date
jasonshort 641aeefbf5 clean-up only
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1592 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-05 06:31:03 +00:00
jasonshort 7b9ede0b29 new Hexa code
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1591 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-05 06:14:44 +00:00
jasonshort 586ed36f41 incremented version
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1585 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-01 05:01:43 +00:00
jasonshort 8fadc32000 added ch7,8 to init for hexa quads
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1584 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-01 05:01:19 +00:00
jasonshort a99ec67d5c updates for CGS
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1583 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-31 17:10:07 +00:00
jasonshort 8e32e2f4c2 Changes from flight testing
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1582 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-31 01:54:07 +00:00
jasonshort 4dcc1a905d FBW bug fixes
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1576 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 02:36:03 +00:00
jasonshort c7f162ed51 New feature prevents startup of motors.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1574 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 22:03:50 +00:00
jasonshort 4cf16f67c4 fixed Current logging output.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1572 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 05:55:23 +00:00
jasonshort 70f11ef88d fixed PM logging rate.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1571 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 04:58:31 +00:00
levinemax@gmail.com b3334b71bd small fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1570 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 18:26:17 +00:00
jasonshort 1c9a53ec81 upped the camera behavior for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1569 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:39:17 +00:00
jasonshort 42c7423802 upped the threshold PWM for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1568 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:38:26 +00:00
jasonshort f57887ee4a adjust tri frame output to not output 4th motor
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1567 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:36:33 +00:00
jasonshort 0b2008f581 removed debugging
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1561 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 17:22:39 +00:00
jasonshort e6fe75c9aa fixed FBW bugs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1560 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 07:14:54 +00:00
jasonshort 4c8c09edac added instructions for Acro setting
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1557 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-25 06:28:34 +00:00
jasonshort e977116f9b new rate control, FBW fixes, new safety.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1556 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-25 05:53:36 +00:00
jasonshort d905bbc551 removed counteri - is moved to a static var in motors.pde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1552 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-24 02:05:27 +00:00
jasonshort 3a385e3170 Moved output to motors.pde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1551 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-24 02:04:44 +00:00
jasonshort cc540ae730 fixed imax scaling bug
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1550 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-24 01:58:04 +00:00
jasonshort a32c082777 better default config
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1549 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-24 01:57:31 +00:00
jasonshort 9d5937db52 improved throttle PIDs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1548 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-24 01:55:19 +00:00
jphelirc e449757510 hexa frame setp
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1536 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 16:40:03 +00:00
jasonshort 8901d8a238 Added Arming light. LED A solid = safe, blinking = armed.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1529 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 02:36:22 +00:00
jasonshort b912b7e0eb altitude was set to sonar pid rather than baro pid
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1528 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 02:09:54 +00:00
jasonshort b830afd678 was adding throttle cruise twice.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1527 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 02:08:46 +00:00
jasonshort aaa19ebbfc Added ability to exit the GPS test loop.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1526 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 02:07:21 +00:00
jasonshort 09df4b35ea updated and tested the auto-trim mode of the accell offsets. Works great, although it's slow, only .6° a second.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1525 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 00:35:51 +00:00
jasonshort 7205208801 Added failsafe radio test!
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1524 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-22 20:25:14 +00:00
jasonshort 60f766f9e2 cleaning up the instructions for use
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1519 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-21 06:10:26 +00:00
jasonshort a6a4fffe46 minor navigation updates, added new copter friendly altitude control for navigating waypoints.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1518 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-21 05:28:01 +00:00
jasonshort 49b387e874 made I term 0 by default
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1517 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-21 04:16:11 +00:00
jasonshort baea026e59 New updated CLI for setup. Cleaner and better defaults and reporting of values.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1516 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-20 07:11:21 +00:00
jasonshort 05f8162d81 changed casting
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1515 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-19 01:48:23 +00:00
jasonshort f5fef60e03 removed access to kD = use the dampener instead
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1513 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-18 19:02:54 +00:00
jasonshort 1606e1a8e9 updated the stabilize_dampener variable
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1512 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-18 19:00:07 +00:00
jasonshort 1fca47fc9b Added current total to the log. Logging at a lower rate. decreased size to ints.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1511 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-18 06:12:11 +00:00
jasonshort 08a2fbfdd0 Added current total to the log. Logging at a lower rate. decreased size to ints.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1510 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-18 06:11:48 +00:00
jasonshort 3ad113b4b9 Renamed the loop timers to gain a new medium loop delta. Fixed an issue with the navigation timer. Updated the current sensing. Need to add a low voltage or current trigger.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1508 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-18 02:48:44 +00:00
jasonshort 548fc9debf Added support for the AttoPilot Current sensor, Logging current is enabled at 10hz,
Trim is now called again on pitch and roll, now that trimming can be done with adc_offsets. Fixed setup::motors for x frame.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1505 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-17 03:44:12 +00:00
jasonshort 610e26db36 removed unused EEPROMB include
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1501 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-16 03:53:30 +00:00
jasonshort c960235f7e Flipped the signs. Should be right.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1500 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-16 02:44:30 +00:00
jasonshort 2b35c91775 Added new leveling command. Hold the trainer swicth - ch7- in and the copter will adjust the ADC_OFFSET based on the roll and pitch command needed to straighten the copter.
no roll and pitch input means no change. Flicking will still update the throttle cruise value. Please check I have the signs correct!!!

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1499 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-16 02:37:35 +00:00
jasonshort cf7488317d Implemented new DCM based yaw independent heading controller.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1495 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-13 01:31:05 +00:00
jasonshort 8423ab6364 added better default value for longitude scaling
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1490 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:22:54 +00:00
jasonshort 521d7ab424 added new FBW test to develop new nav functions
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1489 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:16:00 +00:00
jasonshort a80b4fbb69 added new PID nav functions to split lat and long based on Randy's work.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1488 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:15:08 +00:00
jasonshort 3ed6e0fc87 added new PID nav functions to split lat and long based on Randy's work.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1487 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:15:02 +00:00
jasonshort 53ec770da4 added new PID nav functions to split lat and long based on Randy's work.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1486 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:14:57 +00:00
jasonshort 83687a43ed added new PID nav functions to split lat and long based on Randy's work.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1485 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:13:30 +00:00
jasonshort 1ae7f54aef added reset I functions for new pids
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1484 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:12:57 +00:00
jasonshort e8734783bb deprecated older method of finding pitch and roll
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1483 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:12:29 +00:00
jasonshort b346d003e3 increased PitchMax to 22 to match NG
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1482 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-11 21:11:51 +00:00
jasonshort bcd3e7db56 renamed err to altitude_error
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1478 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:49:45 +00:00
jasonshort cfea6b014a not used
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1477 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:29:16 +00:00
jasonshort a6d8242263 Changed "rate" var to float from long.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1476 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:28:59 +00:00
jasonshort bb7e3af943 Moved implementation of alt hold from NG to ACM.
Tweaked the nav pitch and roll commands to no longer use bearing error.
Angle boost is now a lot less thrust. I was getting too much added thrust when pitched at 45°

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1475 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:24:26 +00:00
jasonshort 1a9a76c2ab Added Sonar to setup, removed Level, compass is now done with text based on and off, compass renamed to mag_offset
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1474 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:21:09 +00:00
jasonshort b6f8c1b6cb Added Sonar throttle gains,
new default dampening gain - STABILIZE_DAMPENER - which should be equivalent to NG.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1473 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:18:49 +00:00
jasonshort 6c9a59541e Added Sonar throttle PID, renamed old throttle PID
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1472 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:15:24 +00:00
jasonshort f7cd2301d2 Added Sonar throttle PID
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1471 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:13:57 +00:00
jasonshort 842f3c569c Added Sonar and Baro enumerations
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1470 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-10 02:13:23 +00:00
jasonshort 538e0ec2bb Added Tri-copter support for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1421 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-04 17:55:03 +00:00
jasonshort 87a1043f25 Added Tri-copter support for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1414 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-04 06:54:40 +00:00
jasonshort ff256d95e2 Added Tri-copter support for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1412 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-04 06:06:26 +00:00
jasonshort 8ce92b6711 Big update - motors re-assigned to new positions.
New, fabulous Yaw control.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1398 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-02 20:34:42 +00:00
jasonshort 95e66d9f06 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1374 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-30 07:41:43 +00:00
jasonshort 852c9e3cc8 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1373 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-30 07:40:57 +00:00
jasonshort a446389c8e git-svn-id: https://arducopter.googlecode.com/svn/trunk@1351 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-29 01:36:30 +00:00
jasonshort 10036c7277 fixed a bug on Yaw.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1309 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-28 01:45:43 +00:00
jasonshort 94ebc7860c fixed a bug on Yaw.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1308 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-28 01:26:05 +00:00
jasonshort cdb6ad86d3 some bug fixes, added basic camera leveling example for pitch only. Added DCM test. Added better Yaw gain defaults. Split radio and RC inits into two calls. Removed inappropriate auto_trim function.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1307 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-27 23:11:01 +00:00
jasonshort 2bc568e3b6 some bug fixes, added basic camera leveling example for pitch only. Added DCM test. Added better Yaw gain defaults. Split radio and RC inits into two calls. Removed inappropriate auto_trim function.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1306 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-27 23:09:08 +00:00
jasonshort c2458845ee added basic camera output example
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1305 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-27 23:03:53 +00:00
jasonshort bce0c6723b fun stuff
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1281 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-27 00:35:08 +00:00
jasonshort 7e1a4d4a38 bad throttle boost code fixed.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1280 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-26 22:30:45 +00:00
jasonshort 94f2d4e66e throttle Cruise error fixed
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1279 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-26 20:04:57 +00:00
jasonshort d4c3574a88 Added FlyByWire mode. Simulates Position hold using the control sticks. Untested. Reset your "modes" in setup CLI before flying this code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1278 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-26 19:49:11 +00:00
jasonshort f10107517a git-svn-id: https://arducopter.googlecode.com/svn/trunk@1268 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-26 05:33:19 +00:00
jasonshort 7329cf6100 latest updates
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1267 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-26 05:25:52 +00:00
jasonshort 03ccf8aef8 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1266 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-26 05:18:25 +00:00
jphelirc 81ba0d36c2 extras file (work on progress)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1236 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-23 14:07:03 +00:00
jphelirc 77822acbbf preparing for addon features
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1235 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-23 14:05:59 +00:00
analoguedevices 95d683d043 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1191 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-12-19 16:40:33 +00:00