# Disabling GPS sensor input to PX4

Source: https://forum.modalai.com/topic/3396/disabling-gps-sensor-input-to-px4
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: sentinel
Posted: 2024-05-03 21:03:03 UTC by jmltt
Replies: 2 · Views: 1222

## jmltt · 2024-05-03 21:03:03 UTC

Is there a way to disable gps sensor data from being published to PX4 on the sentinel without removing it or disabling gps via px4?  

I have sentinels that I'm flying indoors with VIO and mocap.  VIO and mocap don't mesh well together if I send them both to the vehicle as odometry messages.  I'm trying to get around this by sending mocap data as fake gps via hil_gps message over mavlink.  The problem is I have to have gps enabled in PX4 for it to work correctly, but the bad gps data from the sensor is being fused with the mocap gps.  

I can't disconnect the gps because I need the mag for heading.

Any help is appreciated.  Thanks!

## Reply by Eric Katzfey (ModalAI staff) · 2024-05-04 15:59:12 UTC

@jmltt Don't start the gps driver. In the file `/etc/modalai/voxl-px4.conf` set the GPS to NONE.

## Reply by jmltt · 2024-05-06 15:27:58 UTC (in reply to Eric Katzfey)

@Eric-Katzfey that did it, thanks!
