@Moderator Thanks for the response. Follow up question, are the voxl-side timesync requests only used for updating gps timestamps?
After reading the code you linked and running mavlink-server in timesync debug mode I think that the only thing not working is the voxl timesync requests. It looks like when I start sending hil_gps or odometry mavlink messages to the autopilot pipe, one of the autopilot's responses to the voxl timesync requests is dropped or comes in after a new value for last_voxl_time_sent is generated. Then the timesync handler can't recover because it's getting responses that are 1 step behind moving forward (see below).
Since it looks like it continues to get reasonable values for now-ts1 for the autopilot requests, I don't think this is an issue depending on what voxl-side timesync is being used for. Not sure why I'm getting the RTT too high warning in my PX4 log though
output from mavlink server timesync debug mode at the point when I started sending odom/gps mavlink messages to the autopilot:
sending our own ts request at 408744677609
ap ms ahead of voxl: -0.2ms
timesync: now-ts1 = 0.6ms
sending our own ts request at 408845331615
ap ms ahead of voxl: -0.3ms
timesync: now-ts1 = 0.9ms
sending our own ts request at 408945169337
timesync: now-ts1 = 0.2ms
sending our own ts request at 409044439310
timesync: now-ts1 = 0.3ms
sending our own ts request at **409145346227**
timesync: now-ts1 = 0.5ms
sending our own ts request at **409244599326**
unknown timesync request ts1 = **409145346227** tc1 = 409263819000 last_voxl_time_sent = 409244599326
timesync: now-ts1 = 0.3ms
sending our own ts request at 409345147918
unknown timesync request ts1 = **409244599326** tc1 = 409406867000 last_voxl_time_sent = 409345147918
timesync: now-ts1 = 0.2ms
sending our own ts request at 409445248290
unknown timesync request ts1 = 409345147918 tc1 = 409506047000 last_voxl_time_sent = 409445248290
timesync: now-ts1 = 0.2ms
sending our own ts request at 409545084726
unknown timesync request ts1 = 409445248290 tc1 = 409608198000 last_voxl_time_sent = 409545084726
timesync: now-ts1 = 0.4ms
sending our own ts request at 409645091472
unknown timesync request ts1 = 409545084726 tc1 = 409717154000 last_voxl_time_sent = 409645091472