Commit Graph

1409 Commits

Author SHA1 Message Date
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
jjulio1234 af74cb32c5 Main loop organization. NOT WORKING YET
git-svn-id: https://arducopter.googlecode.com/svn/trunk@653 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 14:12:44 +00:00
jjulio1234 cca79ba0db Radio functions in Radio.pde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@652 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 13:32:23 +00:00
jjulio1234 c32ebdd2f5 Update ArduUser.h, EEPROM.pde and GCS.pde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@651 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 12:35:05 +00:00
jjulio1234 dc13c7320a Added LOG_PID_MSG to log.pde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@650 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 12:25:26 +00:00
jjulio1234 018e8efc00 System.pde update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@649 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 12:20:30 +00:00
jjulio1234 0540bbbe28 Start ArducopterNG update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@648 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-11 12:14:04 +00:00
rmackay9@yahoo.com 5c18e5a185 incorporated Jose's magnetometer offset code into APM_Compass library so added a call to set the mag's declination (just to make it easier for people to add).
git-svn-id: https://arducopter.googlecode.com/svn/trunk@637 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-09 23:30:34 +00:00
rmackay9@yahoo.com 3c00a92d14 incorporated Jose's offset code into main compass library.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@636 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-09 23:22:46 +00:00
DrZiplok@gmail.com c5155aa623 Add servo output message, fixes issue #163
Check in my host-side test framework.

Minor tidying.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@635 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-09 18:11:24 +00:00
CaranchoEngineering c03d4e34c5 updated yaw sensor indicator, created installer
git-svn-id: https://arducopter.googlecode.com/svn/trunk@619 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-05 09:26:58 +00:00
CaranchoEngineering fbd117326b removed visual references to AeroQuad, inverted yaw transmitter indicator
git-svn-id: https://arducopter.googlecode.com/svn/trunk@570 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-01 08:30:49 +00:00
DrZiplok 58c1714bd3 Add more documentation to the Menu class.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@569 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-30 04:28:10 +00:00
rmackay9@yahoo.com e7d4273d52 ported John's compass calibration code to trunk.
also added 45 deg angles to orientation matrices to allow more flexibility in mounting the compass to the APM frame.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@565 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-28 13:21:38 +00:00
DrZiplok@gmail.com 4e91c0c7d6 Fix AP_Math include.
Fixes issue #137



git-svn-id: https://arducopter.googlecode.com/svn/trunk@562 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-27 04:05:10 +00:00
rmackay9@yahoo.com 0f5d01b563 added magnetometer orientation functionality to APM_Compass which requires small change to ArduCopter.pde to include AP_Math.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@561 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-26 13:55:47 +00:00
rmackay9@yahoo.com 16df19a26d added magnetometer orientation functionality to APM_Compass
git-svn-id: https://arducopter.googlecode.com/svn/trunk@560 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-26 13:54:24 +00:00
DrZiplok@gmail.com 5ba0c7328f Hook up stdio input, for the heck of it. We seem to be moving away from it, but there are things it can do that are hard to do with the Stream interfaces.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@555 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-25 18:15:56 +00:00
DrZiplok@gmail.com 6838829428 Use strtok_r rather than strtok. Saves a stack frame, two bytes of global, and fixes backwards compatibility with older avr-libc versions.
Fixes issue #131

git-svn-id: https://arducopter.googlecode.com/svn/trunk@554 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-25 18:13:08 +00:00