Commit Graph

3096 Commits

Author SHA1 Message Date
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
DrZiplok@gmail.com 4b09c9fade Fell asleep before committing these, oops.
Cut menu entry return type down to int8_t, make menu command checks case-insensitive.

Fixes issue #135

git-svn-id: https://arducopter.googlecode.com/svn/trunk@553 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-25 18:02:41 +00:00
rmackay9@yahoo.com 8708675b1f added constructor with 9 elements to matrix3.h
corrected matrix * vector function.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@551 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-25 02:43:11 +00:00
DrZiplok@gmail.com d45f67b3ef Add a carriage return before printing a newline when we are called as stdout/stderr.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@547 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-24 07:32:38 +00:00
DrZiplok@gmail.com e2184615d9 Change the way pre-prompt printing works to avoid having to deal with "magic" menu entries.
Add a default 'exit' command to back out of a menu.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@546 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-24 07:31:59 +00:00
DrZiplok@gmail.com 064dda10bf Provide an easy way to print stuff before displaying the prompt.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@545 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-24 06:18:59 +00:00
DrZiplok@gmail.com eb6113e685 Add a simple commandline menu library.
The library has an interface suitable for both interactive and automated use (i.e. Arduino console or GCS operation).


git-svn-id: https://arducopter.googlecode.com/svn/trunk@544 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-24 05:50:02 +00:00
DrZiplok@gmail.com 7721e622aa Rather than subclassing from the templated classes, just typedef directly to them.
This should solve the issues related to assigning to the convenience types.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@543 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 05:45:43 +00:00
DrZiplok@gmail.com f72129bdb3 Clean up the bitrate calculations per the Atmel datasheet.
Verified that when configured for 115200, the actual output as seen on a scope is around 117600Hz consistent with the +2.1% error in the datasheet.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@542 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 05:41:30 +00:00
rmackay9@yahoo.com 15e6469ca9 added downcasting to MATRIX3_CTORS. this fixes some problems with setting the results from a formula to a variable (i..e m1 = m2*2).
git-svn-id: https://arducopter.googlecode.com/svn/trunk@541 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 05:39:50 +00:00
rmackay9@yahoo.com b3e1b6c57d minor corrections to the operator *= and constructor so that matrix can be more easily created from vector objects
git-svn-id: https://arducopter.googlecode.com/svn/trunk@540 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 03:14:15 +00:00
deweibel 34aa823003 Bug fixes for EM-406
git-svn-id: https://arducopter.googlecode.com/svn/trunk@539 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 00:20:11 +00:00
DrZiplok@gmail.com ac2e14c4ec Remove a bunch of probably wrong const cruft. Ditch the dubious array index operators from vector2.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@538 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-22 17:41:49 +00:00
DrZiplok@gmail.com 815e5f871a Remove the trivial operator= implementations, the default shallow copy is fine.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@537 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-22 16:32:38 +00:00