Commit Graph

32550 Commits

Author SHA1 Message Date
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