Robotics StackExchange | Archived questions

How to set rpi system time at MAVROS startup through Flight Controller GPS?

I want to set a Raspberry Pi 4 companion computer running Mavros system time using the GPS time in my flight controller via mavlink. The issue I've discovered is I can't start mavros successfully unless the times sync up within a very short range, and if there is no internet connection mavros won't start. It only makes logical sense since there are two embedded systems connected directly to each other and the time is coming off of the GPS from the flight controller that mavros should be smart enough or have a module to set the system time on the Raspberry Pi.

Anybody have a solution? Thanks for any assistance you were able to provide.

Sincerely,

Aaron

Asked by Aaron_Sims on 2021-06-21 14:31:23 UTC

Comments

Answers

Hi.
Did you get this working? Did you see https://ardupilot.org/dev/docs/ros-timesync.html it might help you.

Best regards, Zdanek

Asked by Zdanek on 2021-12-21 08:11:27 UTC

Comments