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
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
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
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
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
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
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
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
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
DrZiplok@gmail.com
646045ef44
Some minor fixes prompted while looking at the code for other reasons.
...
Return non-const values from assignment. Fix operator* for matrix3.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@536 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-22 16:15:26 +00:00
DrZiplok@gmail.com
9db013e648
Stop trying to be so clever in the tx interrupt handler. We may race with the code stuffing bytes into the ring such that we consume the last byte and empty the ring before they set the UDRE interrupt.
...
If that happens since we weren't checking the ring for emptiness we would loop and spit out the whole ring again. It's cheaper in terms of interrupt latency to just check the ring at interrupt time than it is to futz with ATOMIC_BLOCKs in the ::write code.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@535 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-22 06:56:27 +00:00
DrZiplok@gmail.com
6d31545b8d
Per Jose, fix the interrupt vectors to work for non-1280-based Arduino.
...
Make Serial0 also stdin and stderr.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@534 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-22 03:00:10 +00:00
rmackay9@yahoo.com
241fd41289
fixed issue #34 from issues list regarding incredibly minor issue in keywords.txt. Also fixed a spelling mistake and removed the "n" from Jordi's name that causes Arduino IDE to complain about non-standard characters.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@529 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-19 03:06:46 +00:00
jasonshort
6fa92cc299
still unstable
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@528 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-18 19:18:55 +00:00
jasonshort
6cf2d1e86e
better error wrapping
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@519 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-15 01:45:25 +00:00
jasonshort
b9f8b6727d
Made ground course from Xplane an unsigned int.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@518 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-14 19:13:02 +00:00
DrZiplok@gmail.com
0f53cc4c8e
Add a guard ifdef to catch folks trying to build APM with the wrong board selected.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@517 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-14 15:22:08 +00:00
jasonshort
b0d81d3b68
git-svn-id: https://arducopter.googlecode.com/svn/trunk@514 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-14 02:33:00 +00:00
DrZiplok@gmail.com
11865c1718
Remove the method call from the interrupt handlers. This brings the rx and tx interrupt paths down to < 60 instructions worst case, or ~4us.
...
At 115200 we expect ~100us between interrupts, or around 5% CPU overhead. 4us latency is probably acceptable for servo signal jitter too if we decide to consider using the Arduino Servo library.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@513 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-13 17:44:59 +00:00
DrZiplok@gmail.com
1f7f814183
Spell 'latitude'.
...
Fixes to make this build.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@506 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-13 03:51:27 +00:00
DrZiplok@gmail.com
2f39f95556
Fix class def to match implementation.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@505 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-13 03:50:42 +00:00
DrZiplok@gmail.com
3ea33576f6
Add twitch_servos required by ArduPilot.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@504 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-13 03:50:12 +00:00
DrZiplok@gmail.com
29ba4b8be1
Forgot to include the IMU GPS emulator, breaking X-Plane
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@483 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-12 00:51:44 +00:00
jasonshort
f4b024f194
changed read_pwm to read
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@480 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-11 19:42:49 +00:00
deweibel
b7778b2ad9
Returned channel read order to the original order
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@473 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-11 14:21:16 +00:00
DrZiplok@gmail.com
dc85377587
Don't count on things including <stdint.h> before AP_Common.h.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@456 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-11 06:15:12 +00:00
DrZiplok@gmail.com
10f3a6f9cb
Drop a couple things in here in support of code moving to libraries.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@455 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-11 06:13:28 +00:00
deweibel
8a4b060873
correct typo
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@450 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-10 23:58:19 +00:00
deweibel
72d031b4b5
Reorder the channels
...
Fix overflow issue
git-svn-id: https://arducopter.googlecode.com/svn/trunk@449 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-10 20:41:41 +00:00
DrZiplok@gmail.com
80bc831363
Reinstate the ground course filter for the not-really-suppored SiRF GPS.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@448 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-10 06:32:33 +00:00
jasonshort
dff31e7dde
git-svn-id: https://arducopter.googlecode.com/svn/trunk@444 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-09 06:35:21 +00:00
analoguedevices
63ae72648e
Commented out AP_Common, which is not implemented yet.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@443 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-08 22:18:58 +00:00
DrZiplok@gmail.com
b918f21567
Replace the questionable rotation operation with a conventional transposition.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@442 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-08 08:41:29 +00:00
DrZiplok@gmail.com
097161cd8d
Beginnings of a math library for ArduPilot(Mega) systems.
...
The vector classes are light adaptations of work by Bill Perone
(billperone@yahoo.com ), the Matrix3 class draws on them for
inspiration.
Bill's matrix classes are too heavyweight and not templated, so
they're less suitable for us here.
This code compiles, and some trivial tests seem to work, but
it should not be considered "golden" yet.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@441 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-08 08:21:46 +00:00
DrZiplok@gmail.com
ffa25b0846
Fix the MTK test to use the same baud rate that APM does.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@440 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-08 05:07:35 +00:00
DrZiplok@gmail.com
f665e944f0
Add a single header for the library that brings in declarations for all of the GPS types supported by the library.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@439 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-08 05:06:56 +00:00
DrZiplok@gmail.com
31ab494aaa
Jason's GPS_None pointed out a few changes that in turn drastically simplify it.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@431 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:57:39 +00:00
jasonshort
dd8c883995
git-svn-id: https://arducopter.googlecode.com/svn/trunk@430 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:45:06 +00:00
jasonshort
fd42ef7225
git-svn-id: https://arducopter.googlecode.com/svn/trunk@429 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:43:57 +00:00
jasonshort
66a45523d6
don't fly
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@428 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:43:30 +00:00
jasonshort
a496ef2b17
don't fly
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@427 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:43:08 +00:00
jasonshort
5dc67ce6c6
don't fly
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@426 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:42:50 +00:00
DrZiplok@gmail.com
6268189d31
Dynamically allocate serial buffers at ::begin time. Allow buffer sizes to be dynamically set.
...
This provides an opportunity for saving memory in the case of ports that do little or no work (e.g. the console) as well as increasing buffering for ports that receive large amounts of data in a short time (e.g. high-bitrate NMEA).
git-svn-id: https://arducopter.googlecode.com/svn/trunk@425 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 05:41:35 +00:00
DrZiplok@gmail.com
ba021b5fe8
Remove a diagnostic I missed.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@424 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 04:22:13 +00:00
DrZiplok@gmail.com
c6ceb85c21
Refactor the EM-406 support into a 406-specific init routine and a generic SiRF parser.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@423 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 04:20:34 +00:00
DrZiplok@gmail.com
c981b7d0b0
Rework the u-blox driver.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@422 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 22:31:18 +00:00
DrZiplok@gmail.com
a83f663942
Private member naming
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@421 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 22:30:29 +00:00
DrZiplok@gmail.com
3e1cd1ea2e
Set native line endings on checkout to help avoid confusion.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@419 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 20:18:32 +00:00
DrZiplok@gmail.com
7e345e027c
Push server-native line endings.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@418 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 20:16:50 +00:00
DrZiplok@gmail.com
add89239f3
Rework the MTK protocol decoder for robustness and code size.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@417 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 20:00:57 +00:00
DrZiplok@gmail.com
1dd4bc9080
Fix MTK lat/lon scaling.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@414 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 17:40:12 +00:00
DrZiplok@gmail.com
63d1cf06c1
Fix the GPS port for MediaTek tests.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@413 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 17:22:37 +00:00
DrZiplok@gmail.com
ed24b47fb3
Decouple BinComm from FastSerial, now that we can use Stream instead.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@405 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 09:40:45 +00:00
DrZiplok@gmail.com
96a80f1c66
Cleanup.
...
Teach AP_GPS about FastSerial (in the few places it needs to know) and about Stream everywhere else.
Do some minor code cleanup.
Tested with Mega and uBlox. Some issues (e.g. reporting 0 satelites) remain.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@404 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 09:20:44 +00:00
DrZiplok@gmail.com
6b6637bd06
Omit the ::write method, as Print already implements it.
...
Fix a critical bug in the TX output buffer handling.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@403 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 09:01:20 +00:00
jasonshort
46c203e36c
added servo_in
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@402 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 06:35:34 +00:00
jasonshort
20987c1b89
added servo_in
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@401 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 06:14:24 +00:00
jasonshort
4b762bf933
New MTK codes
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@400 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 05:05:52 +00:00
jasonshort
d68cde2571
New MTK codes
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@399 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 05:05:44 +00:00
jasonshort
11e896b64c
DCM Lib - unstable
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@398 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 05:01:54 +00:00
jasonshort
3d508f1a74
blah
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@397 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 05:00:00 +00:00
jasonshort
daca3c3de0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@396 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-06 04:47:08 +00:00
DrZiplok@gmail.com
009ef940c6
Update to take advantage of the new Stream class in Arduino 0019.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@387 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-05 19:43:08 +00:00
deweibel
2913b74b3a
Repaired EM-406 library
...
corrected units on MTK test program
git-svn-id: https://arducopter.googlecode.com/svn/trunk@383 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-04 14:57:20 +00:00
deweibel
eb7b9f6d6e
corrected units on MTK test program
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@382 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-04 14:56:48 +00:00
jasonshort
82052f95af
git-svn-id: https://arducopter.googlecode.com/svn/trunk@380 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-03 04:13:57 +00:00
jasonshort
a18d0af3d1
git-svn-id: https://arducopter.googlecode.com/svn/trunk@379 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-03 04:13:28 +00:00
deweibel
fe0ba2bb29
correct configuration bug and change values of Fix to be consistent with ublox and APM
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@378 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-02 23:32:16 +00:00
deweibel
40a9335e1a
correct configuration bug and change values of Fix to be consistent with ublox and APM
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@377 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-02 23:29:32 +00:00
DrZiplok@gmail.com
e0be94a03f
Change the way the port declaration macros work. This saves ~300
...
bytes by shrinking the constructor.
I don't quite understand why g++ is emitting two identical copies of
the ctor, but it wastes a bunch of space. 8(
Integrate FastSerial with the C library's standard I/O. Add new
::printf and ::printf_P methods that do the obvious thing, and a
::getfd method so that a caller can use the other stdio functions with
the port if that's interesting.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@361 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-31 06:22:54 +00:00
jasonshort
116bd22aa7
406 lib - needs help
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@358 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 18:30:51 +00:00
jasonshort
8987b4d12e
git-svn-id: https://arducopter.googlecode.com/svn/trunk@356 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 04:30:41 +00:00
DrZiplok@gmail.com
22c9ed317e
Change the way that FastSerial ports are created, so that we can avoid
...
creating port drivers for ports that aren't used.
This lets us save the RAM (~200 bytes per port) that would otherwise
have been used for buffers. It also frees up the port's interrupt
vectors so that on Mega we can use the ports for other things
(e.g. SPI Master mode).
Better to fix this now than later when we have more consumers.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@355 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 04:01:15 +00:00
analoguedevices
3db966f378
Added missing #endif at end of GPS_IMU.h
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@354 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 01:23:50 +00:00
jasonshort
11ccbb9ed7
added ground_course 0-36000 for Ardupilot
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@353 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:18:56 +00:00
jasonshort
a8b995ae1a
fixed text encoding
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@352 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:16:35 +00:00
jasonshort
a81fad58b8
git-svn-id: https://arducopter.googlecode.com/svn/trunk@351 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:16:15 +00:00
jasonshort
82bf0446ce
git-svn-id: https://arducopter.googlecode.com/svn/trunk@350 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:16:05 +00:00
jasonshort
5f459b1220
git-svn-id: https://arducopter.googlecode.com/svn/trunk@349 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:15:54 +00:00
jasonshort
2ca8ac7259
added ground_course in proper 0-360 degrees * 100 for Ardupilot
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@348 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-30 00:09:47 +00:00
jasonshort
cf7eefd94b
new Compass Lib
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@347 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 23:03:49 +00:00
jasonshort
e27e8a0e94
New Navigation Lib
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@346 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 22:59:02 +00:00
jasonshort
785162ee8d
New GPS Lib
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@344 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 22:58:22 +00:00
jasonshort
557b4bcded
New Compass Lib
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@343 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 22:52:57 +00:00
jasonshort
4f02edac51
New GPS Lib
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@342 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 22:08:33 +00:00
jasonshort
4625fb64b6
Added the Binary command
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@341 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 22:08:03 +00:00
analoguedevices
7d5fbed772
Added GPS_IMY
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@340 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-29 20:38:25 +00:00
DrZiplok@gmail.com
bd2ba2fcc9
Fix this so that it compiles.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@322 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-27 03:30:39 +00:00
DrZiplok@gmail.com
b4a840a336
Add 'extern' definitions to legitimise clients that want to assume that Serial* always exists.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@321 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-27 02:29:14 +00:00
DrZiplok@gmail.com
71efe28851
Library implementing the lower layers of the APM binary communications protocol.
...
Based on work done for the ArduStationM firmware and influenced by Randall Mackay's ArduCopter BinComm code.
This is a work in progress; discussion is welcome.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@318 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-26 08:12:19 +00:00
jasonshort
884098b74d
cleanup
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@316 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-26 02:19:30 +00:00
jasonshort
673c547d91
Seems to be an error in the MTK scaling of Lat and Long!!
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@315 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-26 02:18:13 +00:00
jasonshort
241b710001
updates - Ublox now working
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@313 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-25 17:32:55 +00:00
jasonshort
bb2f1dfcc1
New Libraries
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@287 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-24 04:14:01 +00:00
jasonshort
2c6e096a3b
New Libraries
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@286 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-24 04:13:27 +00:00
jasonshort
55621d583d
made trims part of init.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@285 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-24 04:13:00 +00:00
jasonshort
267ac3cc6a
New RC lib for 328
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@284 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:47:31 +00:00
jasonshort
69833ebcd5
accidentally deleted
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@283 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:45:16 +00:00
jasonshort
3565a54bf2
git-svn-id: https://arducopter.googlecode.com/svn/trunk@282 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:41:41 +00:00
jasonshort
a65098f055
git-svn-id: https://arducopter.googlecode.com/svn/trunk@281 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:41:08 +00:00
jasonshort
61179ba90f
Ardupilot Hardware RC Library for the 328
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@280 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:34:30 +00:00
jasonshort
6215ad2471
Ardupilot Hardware RC Library for the 328
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@279 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:29:53 +00:00
jasonshort
6eb2dc1301
Ardupilot Hardware RC Library for the 328
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@278 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:29:43 +00:00
jasonshort
742d0ceef2
Ardupilot Hardware RC Library for the 328
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@277 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 21:28:50 +00:00
DrZiplok@gmail.com
6074c410d9
"Fast" serial driver that fully overrides the Arduino-provided HardwareSerial/Serial* driver.
...
The receive side is basically a copy of the HardwareSerial driver, whilst the transmit side
uses the same algorithm as the APM_FastSerial driver.
See the example sketch for usage details.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@276 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-23 06:25:03 +00:00
deweibel
c0e5fa9908
Added GetWritePage()
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@230 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-18 18:29:03 +00:00
deweibel
c58d9577ae
corrected altitude scaling
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@229 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-18 18:28:30 +00:00
jjulio1234
4d1cbc1cca
New version of APM_FastSerial library
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@89 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-13 16:17:08 +00:00
analoguedevices
67a19893e7
Fixed typos:
...
Ground_Speed KETWORD2 -> KEYWORD2
Now calls GPS_MTK rather than GPS_UBLOX
git-svn-id: https://arducopter.googlecode.com/svn/trunk@87 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-13 07:00:49 +00:00
jjulio1234
84fb1f015d
Added APM_FastSerial library for fast serial output
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@74 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-11 21:59:16 +00:00
deweibel
53a575c69c
git-svn-id: https://arducopter.googlecode.com/svn/trunk@58 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-03 22:00:12 +00:00
deweibel
dcc9c20f15
correct ground_course scaling error
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@57 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-08-03 20:36:52 +00:00
analoguedevices
2648385eb9
Move to proper folder
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@55 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-07-25 17:51:53 +00:00
analoguedevices
00dde93d5a
git-svn-id: https://arducopter.googlecode.com/svn/trunk@48 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-07-17 23:31:03 +00:00
analoguedevices
8896b7e15e
git-svn-id: https://arducopter.googlecode.com/svn/trunk@47 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-07-17 23:30:51 +00:00
analoguedevices
8a82413080
Correct FOR loop that didn't get to channel 8
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@39 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-07-05 00:54:36 +00:00
jjulio1234
1a8856d0d5
New version from Ted´s Mikro branch. Added InstantPWM.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@38 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-07-04 20:15:20 +00:00
jjulio1234
830fa2b104
Adjusted IMU gains and Accelerometers dynamic weighting
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@19 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-06-21 20:15:22 +00:00
jjulio1234
3976200f50
First version. This is the "core" of the project and libraries.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-05-28 14:38:51 +00:00