drv_gps.h: cleanup the file, remove unneeded stuff

This commit is contained in:
Beat Küng 2016-04-19 16:43:13 +02:00 committed by Lorenz Meier
parent 1013ae7d49
commit 7ef718912a
2 changed files with 2 additions and 18 deletions

View File

@ -37,8 +37,7 @@
* GPS driver interface.
*/
#ifndef _DRV_GPS_H
#define _DRV_GPS_H
#pragma once
#include <stdint.h>
#include <sys/ioctl.h>
@ -52,8 +51,6 @@
#define GPS_DEFAULT_UART_PORT "/dev/ttyS3"
#endif
#define GPS0_DEVICE_PATH "/dev/gps0"
typedef enum {
GPS_DRIVER_MODE_NONE = 0,
GPS_DRIVER_MODE_UBX,
@ -61,16 +58,3 @@ typedef enum {
GPS_DRIVER_MODE_ASHTECH
} gps_driver_mode_t;
/*
* ObjDev tag for GPS data.
*/
ORB_DECLARE(gps);
/*
* ioctl() definitions
*/
#define _GPSIOCBASE (0x2800) //TODO: arbitrary choice...
#define _GPSIOC(_n) (_IOC(_GPSIOCBASE, _n))
#endif /* _DRV_GPS_H */

View File

@ -466,7 +466,7 @@ start(const char *uart_path, bool fake_gps, bool enable_sat_info)
DevMgr::getHandle(GPSSIM_DEVICE_PATH, h);
if (!h.isValid()) {
PX4_ERR("getHandle failed: %s", GPS0_DEVICE_PATH);
PX4_ERR("getHandle failed: %s", GPSSIM_DEVICE_PATH);
goto fail;
}