Commit Graph
126 Commits
Author SHA1 Message Date
Amir c23562c9ed GPS: Add height above the ellipsoid info
Modification of the GPS message, add height above the ellipsoid info.
2015-11-27 22:28:41 +01:00
Lorenz Meier ff6676ef8c GPS: Fixed code style 2015-10-19 13:16:11 +02:00
Lorenz Meier 5b23345b0f GPS: Remove excessive stack allocation 2015-10-10 22:23:34 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
Lorenz Meier dd697d1343 GPS: Remove unused header 2015-09-16 18:12:05 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier 8cd6f3529c Merge pull request #2555 from PX4/uorb_msg
uORB message support
2015-08-12 17:31:44 +02:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Lorenz Meier ffb9e87161 Converted satellite_info topic to generated topic 2015-08-10 15:34:08 +02:00
Lorenz Meier 0c6b8f2501 GPS: silence verbose boot messages 2015-08-01 17:15:52 +02:00
Lorenz Meier 0d37de005b Merged beta to master 2015-07-17 23:42:23 +02:00
Lorenz Meier d9f0baf4dc GPS driver: Only let the driver publish reports if it really found a GPS receiver 2015-07-17 21:19:32 +02:00
Lorenz Meier c62ae87c69 Merge release_v1.0.0 into master 2015-05-28 18:08:31 -07:00
Lorenz Meier 46920cfd27 GPS driver: Obey non-publish flag in all modes 2015-05-28 17:41:26 -07:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Lorenz Meier d906fb8f31 Merged master into linux 2015-05-19 21:00:02 +02:00
Johan Jansen 680898e6aa GPS: Publish first data after configuring device 2015-05-18 12:48:40 +02:00
Mark Charlebois c5237f7f6f Removed extra abstracton layer in systemlib
The calls to task_spawn_cmd, kill_all, and systemreset  were wrappers
around the px4_{task_spawn_cmd|kill_all|systemreset} implementations.

Removed the wrappers and changed all calls to the px4_ equivalents.

NuttX specific code was moved into px4_tasks.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:43:11 -07:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Johan Jansen 051b7b853e UBlox: Check valid time bit for NAV_TIMEUTC messages (used for Ublox 6 and earlier) 2015-04-10 09:56:05 +02:00
Johan Jansen 891a7af509 UBlox: Only use time and date if flags are valid 2015-04-07 17:15:33 +02:00
Johan Jansen a121f6101f UBlox: Only use fix and velocity if flags are valid 2015-04-07 17:15:17 +02:00
Stefan 9224738804 update dead link to Ublox Documentation
actualise dead link to Ublox M8 V15-17 Receiver Description Protocol Spec ( new R08 from 4 December 2014)
2015-02-24 20:59:23 +01:00
Lorenz Meier f26a1cb3f1 Merge pull request #1794 from PX4/ekf-fixes
EKF Fixes from @Zefz
2015-02-15 22:55:09 +01:00
Lorenz Meier c26b4e123f Fix up GPS command line option usage 2015-02-15 19:40:42 +01:00
Lorenz Meier 1b8f5de134 GPS / ashtech: Use double for time where NMEA uses floating point numbers 2015-02-15 10:17:01 +01:00
Lorenz Meier 3bb0008af5 Ashtech driver: Avoid unnecessary double precision conversion calls 2015-02-15 10:17:00 +01:00
Johan Jansen b1b078103a GPS: Remove GPS disable debug code 2015-02-13 14:29:59 +01:00
Johan Jansen a8c298c772 AttPosEKF: Remove unused gps accel estimation 2015-02-12 13:55:03 +01:00
Johan Jansen 0cbfa65056 AttPosEKF: Refactor and code cleanup 2015-02-11 17:57:33 +01:00
Lorenz Meier aeb8642117 GPS: Move to 0-based index 2015-02-09 22:56:21 +01:00
Lorenz Meier ba10e18ffb Remove unneeded cast in GPS driver 2015-02-08 11:40:20 +01:00
Lorenz Meier ebacd9b5ad GPS fixes from coverity 2015-01-21 08:58:47 +01:00
Lorenz Meier 78cde98ea8 GPS driver: Add missing wall clock setup for MTK GPS modules 2015-01-06 18:22:44 +01:00
Lorenz Meier 1cc92c0361 GPS driver: Require valid minimum time to allow setting the wall clock. Protection against nulled time fields 2015-01-04 16:24:43 +01:00
Lorenz Meier eefad6217d GPS driver feedback cleanup 2015-01-04 12:05:40 +01:00
Ban Siesta 25fc9d791a renaming of gps time to UTC time 2015-01-04 10:43:28 +00:00
Ban Siesta 4cc7f599d1 ashtech: whitespace 2015-01-04 10:40:39 +00:00
Lorenz Meier f48abafbc9 GPS driver: Set RTC from Ashtech receivers as well 2015-01-04 10:45:20 +01:00
Lorenz Meier 50a00bee8e GPS driver: UBX time handling for all protocol revisions 2015-01-04 10:45:20 +01:00
Lorenz Meier c1f89dbd5c GPS driver: Check return value of settime and notify shell if call fails 2015-01-04 00:08:04 +01:00
Lorenz Meier 48a8ea7f19 GPS driver: Fixed implicit cast causing time logic errors. Found by @Zefz 2015-01-04 00:07:42 +01:00
Lorenz Meier 2a95b4a9b8 GPS: Update the RTC even when RTC is enabled 2015-01-03 19:05:42 +01:00
Lorenz Meier 54e7ed70e1 GPS: be less verbose 2014-11-22 16:34:09 +01:00
Denis Yeldandi 686d3f4c79 Checking if fix status is less or equal to 0 rather than just equal 2014-10-10 18:42:24 +04:00
Denis Yeldandi fb6a68af70 Fixed issue #1382
- Ashtech driver is no longer checking fix status from comparing
  coordinates to 0.0;0.0;0.0, instead it's checking fix type in GGA or
  checking coordinate exsistance in POS. This removes compiler warning
  about float euqality comparison.

- Fixed compiler warning about comparison between signed and unsigned
  int

- Fixed compiler warning about class property masking
2014-10-10 17:51:18 +04:00
Denis Yeldandi 5bbca77796 Got rid of str_scanDec and scanFloat64.
- Replaced str_scanDec and scanFloat64 with strtol and strtod.
 - Added __attribute__ ((unused)) to yet unused variables
 - Added initialization for a few variables
2014-10-09 14:11:18 +04:00