mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 05:43:33 +08:00
drv_gps.h: cleanup the file, remove unneeded stuff
This commit is contained in:
+1
-17
@@ -37,8 +37,7 @@
|
|||||||
* GPS driver interface.
|
* GPS driver interface.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _DRV_GPS_H
|
#pragma once
|
||||||
#define _DRV_GPS_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@@ -52,8 +51,6 @@
|
|||||||
#define GPS_DEFAULT_UART_PORT "/dev/ttyS3"
|
#define GPS_DEFAULT_UART_PORT "/dev/ttyS3"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GPS0_DEVICE_PATH "/dev/gps0"
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GPS_DRIVER_MODE_NONE = 0,
|
GPS_DRIVER_MODE_NONE = 0,
|
||||||
GPS_DRIVER_MODE_UBX,
|
GPS_DRIVER_MODE_UBX,
|
||||||
@@ -61,16 +58,3 @@ typedef enum {
|
|||||||
GPS_DRIVER_MODE_ASHTECH
|
GPS_DRIVER_MODE_ASHTECH
|
||||||
} gps_driver_mode_t;
|
} 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 */
|
|
||||||
|
|||||||
@@ -466,7 +466,7 @@ start(const char *uart_path, bool fake_gps, bool enable_sat_info)
|
|||||||
DevMgr::getHandle(GPSSIM_DEVICE_PATH, h);
|
DevMgr::getHandle(GPSSIM_DEVICE_PATH, h);
|
||||||
|
|
||||||
if (!h.isValid()) {
|
if (!h.isValid()) {
|
||||||
PX4_ERR("getHandle failed: %s", GPS0_DEVICE_PATH);
|
PX4_ERR("getHandle failed: %s", GPSSIM_DEVICE_PATH);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user