|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Roborio and Real Time Clock
So from our RoboRIO image in /etc/init.d/bootmisc.sh
I see this little nugget: Code:
# Set the system clock from hardware clock # If the timestamp is more recent than the current time, # use the timestamp instead. test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start |
|
#2
|
||||
|
||||
|
Re: Roborio and Real Time Clock
I am not sure, ssh to the roboRio and type 'date'. If it is working the system clock is present. The relative timer in the kernel is required and sometimes, in embedded Linux systems, a virtual RTC is created using the jiffy clock to progress the time.
|
|
#3
|
||||||
|
||||||
|
Re: Roborio and Real Time Clock
The roboRIO does not have a battery powered RTC. However, the DS sends the time when it connects, which the roboRIO uses to set the system time. If you wait until the DS connects, you can have correct timestamps, without a RTC.
|
|
#4
|
|||
|
|||
|
Re: Roborio and Real Time Clock
Ahh that make sense. I have been doing all my testing with QDriverStation, which apparently does not do the time update (at least not from my Mac :-). But I remember seeing fairly accurate time data in the past -- it was actually driving me nuts.
Thanks |
|
#5
|
||||
|
||||
|
Re: Roborio and Real Time Clock
Can confirm. Had some weird timestamps on logs last year, took us waaaay too long to figure out what was going on.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|