I found a function in v5_api.h vexGetdate( struct date *pDate );
but the result is always year 2016, can anyone help me?
My understanding is that V5 brains have no Real-time clock component that usually keeps accurate time in computers and various gadgets with an aid of little battery.
So, when you disconnect the battery from V5 brain it forgets everything and time counter goes back to to zero.
Some of us still remember the time when we had to enter current date and time on every boot up of our cheap 8086 knock-offs or it will assume it is 01-01-1980, because there was no RTC.
Yes, exactly, I had hoped the final product might have one, but didn’t happen. Just for fun, this is what the internal code looks like.
/*-----------------------------------------------------------------------------*/
/** @brief Get RTC data - TODO */
/*-----------------------------------------------------------------------------*/
void
V5_Getdate( struct date *pDate ) {
pDate->da_year = 2016;
pDate->da_mon = 11;
pDate->da_day = 16;
}
I completely forget what the significance of 16 Nov 2016 was, perhaps the day I wrote that code, idk.
OK, thaks
I thought it will update when connect with computer yesterday
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.