Beginner Question No RTK LED raspberry pi as python variable

Q&A forumBeginner Question No RTK LED raspberry pi as python variable
Orlando Lopez asked 3 weeks ago

Since the RTK has a No RTK LED which shows if RTK is engaged or not I was wondering if there is some way to detect that in python code for the raspberry pi. Pretty much I want to tie the No RtK to a variable in python.
My project uses the RTK to move a car up to a certain waypoint and then turn around but I’m having trouble with the RTK lock coming in and out, so I want to tell the car to only move forward while it has confirmed that the RTK lock is active, otherwise remain still and wait for RTK lock.
Something like this:
RTK = no RTK led
If RTK==true:
     Move forward
How would that code look like in python for raspberry pi? I’m still new at this so any help would be appreciated.

Ardusimple Staff replied 3 weeks ago

Hi Orlando,
Custom exact code we don’t provide, but you can decode the RTK status from the message called GGA.