Using a Here GPS to set raspberry pi time

Hi!

Is there a way for a Here GPS to set the time for a raspberry pi. I know that this is possible for other GPS’s using gpsd,

However, I am stuck on how I would apply this to a Here 3 or a Here 4 GPS which has a CAN plug. Can some shed some light on how to do this or point me in the right direction? End goal is that I need the rapsberry pi time to be synced to GPS time. Thank you!

@dronecube is this setup on a flight controller, do you have setup to get CAN devices connected to Raspberry Pi.

If you can connect CAN Devices to Raspberry Pi, then simply use pydronecan python module to create a simple python script that can handle GPS messages and use that to set the local time on Raspberry Pi.

If this is a setup on an aircraft, the approach would be to connect mavlink to the Flight Controller. The time using SYSTEM_TIME message. pymavlink python module can be used to create that script.

Hopefully this gives you some direction.