James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
252d11ccfa
AP_GPS: initialise _step to zero in all drivers
...
new() does not zero-fill memory
12 years ago
Andrew Tridgell
f3783b0306
AP_GPS: put SIRF init_messages in progmem
...
this saves 32 bytes of memory
12 years ago
Andrew Tridgell
f93a7d50eb
AP_GPS: fixed debug code
12 years ago
Andrew Tridgell
f7e5f88199
AP_GPS: make UBLOX driver a bit more robust
12 years ago
Andrew Tridgell
3b0398dc14
AP_GPS: fixed UBLOX example for PX4
12 years ago
Andrew Tridgell
2f111b857b
AP_GPS: ported test code for PX4
12 years ago
Andrew Tridgell
f701d0cc85
AP_GPS: a couple more places where we should restart
...
this prevents us losing a byte
12 years ago
Andrew Tridgell
3bfff4bd6d
AP_GPS: pragma pack is needed on ARM
...
we rely on GPS data structures having byte alignment. Luckily GCC can
cope with this.
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
609ef220a6
AP_GPS: more state machine fixes for MTK19 GPS
12 years ago
Andrew Tridgell
c980b32319
GPS: fixed state machine logic errors in MTK19 driver
12 years ago
Andrew Tridgell
8c0d1d7084
GPS: fixed MTK19 driver for AP_HAL merge
12 years ago
Craig@3DR
2de676306e
Improved parsing in auto detect
12 years ago
Craig@3DR
8cfefbc275
Updated rev number in driver
12 years ago
rmackay9
90d7f00965
AP_GPS_MTK16: saved 22 bytes of ram by moving error message into program space.
...
Perhaps there's no point in writing an error message to a console that likely nobody will be viewing anyway.
12 years ago
rmackay9
811550cca6
AP_GPS_MTK19: small bug fix re "==" vs "="
...
Also saved 22 bytes of RAM by moving error message into program space.
12 years ago
Craig@3DR
f778961acf
Added support for Mediatek firmware Rev 1.9
12 years ago
Andrew Tridgell
4a6b46c661
AP_GPS: fixed multiple GPS detection bug
12 years ago
Andrew Tridgell
f549950a9c
AP_GPS: remove some debug code
12 years ago
Andrew Tridgell
ceb3f577d8
libraries: use new math functions
12 years ago
Andrew Tridgell
2679eabdef
Cleanup: removed unused AP_GPS_IMU
12 years ago
Andrew Tridgell
8beaec61a8
AP_GPS: fixed build for new syntax
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
18db7b2efd
GPS: move _port setting to init()
...
this is needed to avoid constructor ordering dependencies
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago
Pat Hickey
f1869d1aa6
AP_GPS: GPS_406_test ported to AP_HAL
12 years ago
Pat Hickey
d6cb240468
AP_GPS: GPS_NMEA_test ported to AP_HAL
...
* I wasn't able to demonstrate the library/test sketch working with my
ublox gps.
12 years ago
Andrew Tridgell
18fb9c67f6
AP_GPS: use AP_Progmem
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Andrew Tridgell
13309cceb3
AP_GPS: reverted formatting of GPS messages
12 years ago
Pat Hickey
2be552ea22
AP_GPS: less chatty autodetect
12 years ago
Pat Hickey
d72c5cf828
AP_GPS: uartB fixup
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Andrew Tridgell
53105efbcd
HAL_AVR: more uart0 -> console changes
12 years ago
Andrew Tridgell
d133f15f57
HAL_AVR: use hal.console instead of hal.uart0
12 years ago
Pat Hickey
c56c4ae240
Various example sketches: hal.uart0->begin(115200) is redundant. use console.
...
just assume uart0 is initialized by the HAL, because it is. DRY.
also, don't ever use uart0 explicitly in example sketches, use console
and let the hal figure it out.
12 years ago
Pat Hickey
deb96143d3
AP_GPS_IMU: fix type punning warnings by using memcpy
12 years ago
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
Craig@3DR
2586c7a32a
Updated the MediaTek configuration
...
to set the minimum speed the GPS must be moving to update the position to 0 m/s.
to enable SBAS / WAAS / DGPS position fixes.
12 years ago
Andrew Tridgell
57d3609d00
AP_GPS: fixed examples build
12 years ago
Andrew Tridgell
2e63b3ae8e
AP_GPS: added in two more dynamic model enums
12 years ago
Andrew Tridgell
984b1086cb
AP_GPS_UBLOX: ask for nav settings every 20 seconds
...
this ensures we don't run with the wrong nav settings on a uBlox if
we get a bad checksum on the initial nav settings message
12 years ago
Andrew Tridgell
72e97c6dfc
AP_GPS: start detection timer on first bytes
...
this prevents a uBlox plugged in late from being detected as a NMEA
GPS
12 years ago
Andrew Tridgell
6f9fa7d3b3
AP_GPS: removed shadowed class variable _nav_setting
...
this caused a uBlox to incorrectly configure as "portable" instead of
airborne if the detection took more than 2 seconds. That led to
terrible performance.
12 years ago
Andrew Tridgell
e74e730992
AP_GPS: added velocity_down() call
...
on GPSes with raw velocity support this will be used for DCM
correction
12 years ago
Andrew Tridgell
a53cbc08f3
GPS: avoid output delays in the GPS auto detection
...
this sends out the GPS init strings in 16 byte chunks to avoid causing
timing glitches when no GPS is attached
12 years ago
Andrew Tridgell
608cc60689
GPS: fixed SIRF auto detect code
13 years ago
rmackay9
50a97f3092
AP_GPS: added get_lag method to return expected lag from the GPS.
13 years ago