Commit Graph

62827 Commits

Author SHA1 Message Date
DrZiplok@gmail.com aec22fc639 Fix the idle timer.
Init a few more critical fields in the ctor.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@772 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-05 08:20:33 +00:00
DrZiplok@gmail.com 9e7876fee7 Dangling comma
git-svn-id: https://arducopter.googlecode.com/svn/trunk@771 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-05 03:53:46 +00:00
DrZiplok@gmail.com 1049bf2153 Add init method so that the comms stream can be set after construction.
Template the pack/unpack functions, make the code a little cleaner.

Fix a few message definitions.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@770 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-05 03:47:29 +00:00
jphelirc eb5f4d7d32 prepared support for Mode 1 & Mode 2 radios
git-svn-id: https://arducopter.googlecode.com/svn/trunk@768 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-03 16:52:04 +00:00
jphelirc 6f70fddea4 work on progress, updated camera functions, rearranging module configs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@767 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-03 12:39:11 +00:00
rmackay9@yahoo.com a5cb22207a modified APM_PerfMon to display results sorted by %cpu
git-svn-id: https://arducopter.googlecode.com/svn/trunk@766 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-03 07:49:37 +00:00
rmackay9@yahoo.com c9e7d227fe added APM_PerfMon library which can be used to track down performance bottlenecks
git-svn-id: https://arducopter.googlecode.com/svn/trunk@765 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-03 06:50:42 +00:00
deweibel 7b752babf0 checking in working copy to work on bad bug
DO NOT ATTEMPT TO FLY

git-svn-id: https://arducopter.googlecode.com/svn/trunk@762 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-02 04:34:49 +00:00
DrZiplok@gmail.com c833182dbe Duplicate include protection for BetterStream.h
git-svn-id: https://arducopter.googlecode.com/svn/trunk@761 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-01 07:42:51 +00:00
DrZiplok@gmail.com c39639045c Default un-supplied command arguments to the empty string and zero rather than leaving them potentially un-initialised. This makes it safe for commands to compare argument strings without adding the expense of checking argc first.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@760 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-01 03:40:54 +00:00
rmackay9@yahoo.com 1adfde9ff6 fixed small typo that was stopping magnetometer initialisation code from being run.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@759 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-31 14:01:21 +00:00
DrZiplok 8b2245acda More documentation.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@758 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-31 00:35:13 +00:00
deweibel b49032d9ea Changes to DCM and IMU libraries to put accel into m/s^2 units
git-svn-id: https://arducopter.googlecode.com/svn/trunk@757 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-30 16:17:16 +00:00
jphelirc 288c61fcce preparing for camera stabilization features
git-svn-id: https://arducopter.googlecode.com/svn/trunk@756 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-30 14:38:52 +00:00
jphelirc 1ece81342b PowerDistro -PCB layer files
git-svn-id: https://arducopter.googlecode.com/svn/trunk@753 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-30 08:31:30 +00:00
jphelirc 4a07a3c09d preparing for automatic calibration via CLI
git-svn-id: https://arducopter.googlecode.com/svn/trunk@752 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-30 08:30:46 +00:00
rmackay9@yahoo.com 7f4137569b Added orientations for Sparkfun magnetometer.
Also corrected some typos in the orientations for the DIYDrones mag.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@751 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-30 05:25:48 +00:00
jphelirc b853247c08 preparing for camera mounts
git-svn-id: https://arducopter.googlecode.com/svn/trunk@744 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-29 05:47:54 +00:00
jasonshort e7b26da27d A simple OO PID library
git-svn-id: https://arducopter.googlecode.com/svn/trunk@742 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-28 04:59:24 +00:00
deweibel 610609f98d Delete obsolete / incomplete DCM library.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@730 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-25 03:02:56 +00:00
deweibel a80eb66e77 fix bugs from factoring imu object.
Tested & working - integration and roll/pitch drift correction
Untested - yaw drift correction and centrepetal comp

git-svn-id: https://arducopter.googlecode.com/svn/trunk@729 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-25 02:03:52 +00:00
deweibel 6272955567 small correction to imu lib
git-svn-id: https://arducopter.googlecode.com/svn/trunk@728 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-24 20:10:09 +00:00
deweibel de51162e81 Correct file references for repository
git-svn-id: https://arducopter.googlecode.com/svn/trunk@727 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-24 19:12:09 +00:00
deweibel 489365e7fc Add IMU library
git-svn-id: https://arducopter.googlecode.com/svn/trunk@726 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-24 18:37:56 +00:00
deweibel 3e30d2566d Add DCM library
git-svn-id: https://arducopter.googlecode.com/svn/trunk@725 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-24 18:37:10 +00:00
DrZiplok@gmail.com 271d4736a8 Factor the Stream-related enhancements out from FastSerial proper, so that we could use them on other Stream subclasses if that seemed worthwhile.
Add print_P and println_P implementations to give folks wedded to the vanilla Stream methods a way to print PROGMEM strings.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@715 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-23 05:59:40 +00:00
rmackay9@yahoo.com 8eeb81f792 reduced APM_Compass library RAM and code footprint
git-svn-id: https://arducopter.googlecode.com/svn/trunk@700 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-22 14:07:41 +00:00
jphelirc 74674b638b flight orientation selection by DIP1 switch
git-svn-id: https://arducopter.googlecode.com/svn/trunk@693 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-19 16:07:51 +00:00
jphelirc f5cd4e45f9 CLI and magneto initializations
git-svn-id: https://arducopter.googlecode.com/svn/trunk@692 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-19 15:22:58 +00:00
jphelirc ede3a46cf1 cleaning up and preparing for CLI
git-svn-id: https://arducopter.googlecode.com/svn/trunk@687 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-18 18:24:46 +00:00
jphelirc 669bde1e45 preparing for DIP switch functions
git-svn-id: https://arducopter.googlecode.com/svn/trunk@686 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-18 08:26:08 +00:00
DrZiplok 84697f4111 Fix ::printf_P to transmit to the correct interface. Fixes the XBee test.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@685 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-18 04:40:33 +00:00
DrZiplok 502b6ee0f7 Teach the compass init code how to detect whether there is a compass present
at all.  This lets systems where it's optional decide whether to try to use
it or not...



git-svn-id: https://arducopter.googlecode.com/svn/trunk@684 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 21:07:25 +00:00
DrZiplok 2e5be5d86b Revert the MTK GPS driver to only claiming a fix when the GPS has a 3D solution, per discussion with Paul.
Minor tidying and documentation.



git-svn-id: https://arducopter.googlecode.com/svn/trunk@683 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 20:13:53 +00:00
jphelirc 35b754bbae Xbee/Ser0 telemetry ports are working again
git-svn-id: https://arducopter.googlecode.com/svn/trunk@682 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 17:34:17 +00:00
jphelirc 455e315a1a updated serial port defs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@681 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 16:18:14 +00:00
DrZiplok@gmail.com ee105a0ebf The previous initialisation strategy for auto-detection doesn't play well with the way APM uses the GPS.
Switch to subclassing GPS and manipulating a global pointer.  Update the test program so that it works again.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@673 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 07:22:11 +00:00
DrZiplok@gmail.com ca6d51cddb If ::begin() is called on a port that is already open, preserve the previous buffer settings. This makes it easy to change serial speeds without having to know how the port buffers were set up originally.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@672 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 06:15:47 +00:00
DrZiplok@gmail.com 0a94520682 Add support for automatically detecting the connected GPS and configuring accordingly.
Note that this is currently disabled as changes need to be made to APM to support it.

Tested with MTK, u-blox and SiRF GPS'.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@671 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 06:06:04 +00:00
paulbmather@gmail.com 079dd3c617 Changes to accommodate blinking lights and loss of GPS commands. Tested with NMEA, uBlox, Sirf and MTK. Does not function correctly with rmack's changes to APM_Compass posted 10/17/2010 (I don't know why).
git-svn-id: https://arducopter.googlecode.com/svn/trunk@669 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 04:07:46 +00:00
DrZiplok 23ccff2ccd Add support for 'new' and 'delete', so we can cons things on the fly.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@668 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 04:02:06 +00:00
rmackay9@yahoo.com 24202b7c46 added call to APM_Compass.SetOffsets. This is just to make it easier for people to figure out how to set the values.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@667 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 01:43:24 +00:00
rmackay9@yahoo.com e29ea04fb1 fixed bug in APM_compass Init method (MagGain should be sent to ConfigRegB). Also repeats calibration if invalid values received from compass.
fixed bugs in rotation matrices.  default orientation is now "Components up pins forward".

Added simple (but not perfect) method of figuring out offsets to APM_Compass_test.pde

git-svn-id: https://arducopter.googlecode.com/svn/trunk@666 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 01:34:57 +00:00
paulbmather@gmail.com 614d43c905 git-svn-id: https://arducopter.googlecode.com/svn/trunk@665 f9c3cf11-9bcb-44bc-f272-b75c42450872 2010-10-16 16:59:03 +00:00
paulbmather@gmail.com 0bbc8651e4 Added #defines for PMTK commands
git-svn-id: https://arducopter.googlecode.com/svn/trunk@664 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-16 16:56:29 +00:00
paulbmather@gmail.com d7e71b602c Fixed issue with comma parsing (space after comma was causing routine to misread data)
Added init functions (PMTK)

git-svn-id: https://arducopter.googlecode.com/svn/trunk@663 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-16 16:55:56 +00:00
jjulio1234 778c68d5ef Some bug corrections on startup
git-svn-id: https://arducopter.googlecode.com/svn/trunk@660 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-13 16:48:09 +00:00
jjulio1234 b7ecadf982 Added limit to errorYaw in DCM to prevent I term to grow too much
git-svn-id: https://arducopter.googlecode.com/svn/trunk@656 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-12 08:44:20 +00:00
jjulio1234 6baf85d880 CalibrateSensors update. Some cleanups...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@655 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 21:54:42 +00:00
jjulio1234 7667214987 Corrected bug on yaw sensor sign
git-svn-id: https://arducopter.googlecode.com/svn/trunk@654 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 20:43:25 +00:00