How to Reboot GPS on Pixhawk via MAVLink in Python?

33 views
Skip to first unread message

parsa haqiqat

unread,
Jul 28, 2024, 6:50:39 AM7/28/24
to MAVLink

Hi everyone,

I'm currently working on a project where I need to reboot the GPS module connected to the GPS1 port on a Pixhawk 6C using MAVLink commands in Python. While I am able to reboot the autopilot using MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN, I haven't been able to find a method to reboot just the GPS.  I also tried to work with GPS_TYPE but this won't reboot the GPS.
Do you have any idea how to handle it?

Hamish Willee

unread,
Jul 28, 2024, 6:24:21 PM7/28/24
to MAVLink
Not supported. Also not sure when you'd want to reboot your GPS but not your autopilot.

Parsa Haghighat

unread,
Jul 29, 2024, 12:50:15 AM7/29/24
to MAVLink
When the drone is reading from GPS sometimes the GPS won't response and in this case I should to reset it. If I can't do it I should to reboot Pixhawk every time but this is going to cost me not using other sensors for a few seconds.
If there is a way to reboot GPS it self it would be awesome...

Hamish Willee

unread,
Jul 29, 2024, 2:33:15 AM7/29/24
to mav...@googlegroups.com
IMO If your GPS isn't responding because it is frozen, then either there is a problem with the GPS, in which case it should be replaced, or there is a problem with the flight stack, in which case the issue needs to be fixed in the flight stack. "Turning it on and off again" is not a good solution for a flying robot.

Either way, not supported by MAVLink, and I don't think we would.

--
Sie erhalten diese Nachricht, weil Sie in Google Groups ein Thema der Gruppe "MAVLink" abonniert haben.
Wenn Sie sich von diesem Thema abmelden möchten, rufen Sie https://groups.google.com/d/topic/mavlink/7G9HgAJWSY4/unsubscribe auf.
Wenn Sie sich von dieser Gruppe und allen Themen dieser Gruppe abmelden möchten, senden Sie eine E-Mail an mavlink+u...@googlegroups.com.
Wenn Sie diese Diskussion im Web verfolgen möchten, rufen Sie https://groups.google.com/d/msgid/mavlink/117634af-a81a-4274-8524-334076418b3bn%40googlegroups.com auf.

Parsa Haghighat

unread,
Jul 29, 2024, 4:40:07 AM7/29/24
to mav...@googlegroups.com
Right now when I’m testing my GPS sometimes it doesn’t give me data. When I reboot it, I can receive data from it. I want to do this because when the drone is flying in the sky and GPS stop working instead of reboot pixhawk and all sensors, just reboot GPS.

Reply all
Reply to author
Forward
0 new messages