# PX4 Params Lost

Source: https://forum.modalai.com/topic/2600/px4-params-lost
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2023-08-29 00:31:50 UTC by SMRazaRizvi
Replies: 10 · Views: 801

## SMRazaRizvi · 2023-08-29 00:31:50 UTC

Hi, I recently flashed my Sentinel drone, and apparently, the files under `/data/px4/params` are missing.

How can I recover the following factory default params files for the Sentinel drone:

```
parameters_gyro.cal
parameters_acc.cal
parameters_mag.cal
parameters_level.cal
```

I have tried calibrating the Compass using QGC, but it doesn't perform accurate calibration, and unless this issue is resolved, I cannot fly up the drone.

Please help.

## Reply by Eric Katzfey (ModalAI staff) · 2023-08-29 14:44:42 UTC

@SMRazaRizvi What do you mean that compass calibration is not accurate?

## Reply by SMRazaRizvi · 2023-09-01 14:02:23 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

I mean, even after calibration, my drone constantly drifts toward the back. Any clue?

## Reply by Eric Katzfey (ModalAI staff) · 2023-09-01 15:18:32 UTC (in reply to SMRazaRizvi)

@SMRazaRizvi The compass provides heading information. Having a poor calibration on the compass wouldn't cause the drone to drift.

## Reply by SMRazaRizvi · 2023-09-01 18:56:17 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 
I see. What can be the reason then?

## Reply by Moderator (ModalAI staff) · 2023-09-04 15:54:24 UTC (in reply to SMRazaRizvi)

@SMRazaRizvi Do you have any trim settings on your controller? The level calibration could also affect

## Reply by SMRazaRizvi · 2023-09-04 18:12:21 UTC (in reply to Moderator)

@Moderator How can I check the trim settings?

## Reply by Moderator (ModalAI staff) · 2023-09-04 19:17:38 UTC

have you posted your PX4 logs to logs.px4.io for analysis?

## Reply by SMRazaRizvi · 2023-09-05 17:53:20 UTC (in reply to Moderator)

@Moderator Yes I did.

## Reply by Moderator (ModalAI staff) · 2023-09-05 18:57:34 UTC (in reply to SMRazaRizvi)

@SMRazaRizvi Can you please share so we can try to help you? The logs should help diagnose why it is drifting

## Reply by SMRazaRizvi · 2023-09-05 19:28:05 UTC (in reply to Moderator)

@Moderator Here you go.

https://drive.google.com/drive/folders/1SHGs2EipV4wpoIZQzzzGKm-ze1DpTbI6?usp=drive_link
