Hi JohFlo,
Thanks for upload.
I reviewed your code and here is the one thing.
int64_t get_timestamp_us()
{
int64_t system_current_time = 0;
// ...
// Please insert system specific function to retrieve a timestamp (in microseconds)
// ...
system_current_time =(int64_t)(HAL_GetTick()*1000);
return system_current_time;
}
Why you multiply 1000 for HAL_GetTick? Is this function nano unit based?
Otherwise, your integration was wrong.
Please check here.
And, if you still have problem, please upload your output log as well. (Problem spot +- 1min)
Thank you.
... View more