# GPS not acquiring

Source: https://forum.modalai.com/topic/100/gps-not-acquiring
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2021-01-17 23:00:26 UTC by Daniel Ryu
Replies: 8 · Views: 1450

## Daniel Ryu · 2021-01-17 23:00:26 UTC

Using the m500 ModalAI drone, and I cannot run "mission mode" from QGC because the GPS cannot acquire. As far as I am aware and could find, the PIXhawk 4 GPS module should acquire automatically as long as it is plugged into the Flight core. However, throughout my three hours of testing, the GPS could not acquire, with the corresponding LED light blinking blue (https://docs.px4.io/master/en/getting_started/led_meanings.html)

I tried unplugging/replugging GPS, resetting drone and QGC, and even sending MAVLink messages to reset the GPS (both cold and hot). 

How can I get the GPS to acquire?

## Reply by modaltb (ModalAI staff) · 2021-01-18 19:00:19 UTC

Hi @Daniel-Ryu ,

Yes you are correct it should find the satellites after power up (within a minute or two...).

So this is strange.  Are you inside or outside?  Inside our office, we have a hard time getting signal occasionally.

Next, can you validate the `GPS_1_CONFIG` is default ('GPS1')?

![583cb779-166e-4082-a5ca-bad4e8ff22e3-image.png](https://forum.modalai.com/assets/uploads/files/1610996361380-583cb779-166e-4082-a5ca-bad4e8ff22e3-image.png) 

Here's what I see with the same setup on my end as a reference:

![7dc8c0aa-0789-4449-9df1-d2c667110975-image.png](https://forum.modalai.com/assets/uploads/files/1610996315551-7dc8c0aa-0789-4449-9df1-d2c667110975-image.png)

Thanks!

## Reply by Daniel Ryu · 2021-01-18 22:27:16 UTC

@modaltb,

This was when I was testing outside. I will check the value of GPS_1_CONFIG and get back to you.

Thanks for the swift response.

## Reply by Daniel Ryu · 2021-01-19 00:42:14 UTC

@modaltb 

gps_1_config is set to GPS1.

I will be checking for these errors next. Please advise if there is anything else I should confirm/check

https://docs.px4.io/v1.9.0/en/flying/pre_flight_checks.html

## Reply by Daniel Ryu · 2021-01-19 00:59:27 UTC

@modaltb 

![bokeh_plot (1).png](https://forum.modalai.com/assets/uploads/files/1611017959904-bokeh_plot-1.png) ![bokeh_plot.png](https://forum.modalai.com/assets/uploads/files/1611017959914-bokeh_plot.png)

Does this mean the GPS is faulty? Do I need a new one?

## Reply by Guest · 2021-01-19 05:19:04 UTC

Hey Daniel,

From the GPS logs you posted, it looks like GPS is working. I see that you have a DGPS fix at 4 and 13 satellites. 

Are you using indoor or outdoor parameters? For instance, EKF2_AID_MASK can be set for indoor or outdoor; it's shipped with indoor configuration. This parameter needs GPS set. 

For updating parameters: 
https://docs.modalai.com/upload-px4-parameters/

https://gitlab.com/voxl-public/flight-core-px4/px4-parameters/-/tree/master/helpers

![b65c7a61-df0f-4cf4-9101-7d8b4be09a4d-image.png](https://forum.modalai.com/assets/uploads/files/1611033403125-b65c7a61-df0f-4cf4-9101-7d8b4be09a4d-image.png) 

![3c936736-bacb-43e6-8d6a-e6465a7b071c-image.png](https://forum.modalai.com/assets/uploads/files/1611033281446-3c936736-bacb-43e6-8d6a-e6465a7b071c-image.png)

## Reply by Guest · 2021-01-19 05:22:34 UTC

Also in the QGC MAVlink console, try gps status and see what comes up.

## Reply by Daniel Ryu · 2021-01-19 05:43:37 UTC

![Screenshot from 2021-01-18 21-42-53.png](https://forum.modalai.com/assets/uploads/files/1611035016130-screenshot-from-2021-01-18-21-42-53.png)

## Reply by Daniel Ryu · 2021-01-19 05:46:36 UTC

Resetting the parameters to outdoor mode seemed to have worked! The GPS acquired a signal and I am able to fly in Mission mode. Thank you!
