mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
drv_gps.h: cleanup the file, remove unneeded stuff
This commit is contained in:
parent
1013ae7d49
commit
7ef718912a
@ -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 */
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user