I have created a task that executes every 10ms, it uses a GSV to determine the time and set a flag once 8am has occurred. I use a periodic task to not flood the CPU with GSV commands more often than I need to.
In another routine I then run a timer and count the number of seconds, when this flag is true I reset my counter.
Is this the best way to do this? Will this be reasonably accurate over the course of a day? Obviously if they change their clock it will break the routine but I'm not fussed by that at the moment.
In another routine I then run a timer and count the number of seconds, when this flag is true I reset my counter.
Is this the best way to do this? Will this be reasonably accurate over the course of a day? Obviously if they change their clock it will break the routine but I'm not fussed by that at the moment.
Last edited: