Time clock
sidecar-racer
Posts: 82
I know this is a simple task but after spending a day batting my head, I thought I'd ask the experts .
I have a loop running at 100ms rep rate for telemetry logging.
In the loop I have 4 byte varibles, hours, minutes, seconds, and tenths of seconds.
These varibles increment correctly and will display on CRT
I want to create a string in HH:MM:SS.S format from these varibles to insert in SD-FAT file record (Excel CSV format)
Any thoughts??
Rick Murray
I have a loop running at 100ms rep rate for telemetry logging.
In the loop I have 4 byte varibles, hours, minutes, seconds, and tenths of seconds.
These varibles increment correctly and will display on CRT
I want to create a string in HH:MM:SS.S format from these varibles to insert in SD-FAT file record (Excel CSV format)
Any thoughts??
Rick Murray
Comments
EDIT: I just looked through this code again. This is a really old example. I'll try to find a newer (better) example tomorrow. This code is very akward.
Here are parts of an old program that does this. I don't think the SD card methods in this example are named the same as they are in the newest FAT driver. I think the clock driver is an old one too.
The AddDecToString method is probably the most useful method (of those in the code below) to help you with what you want to do.
Duane
Your info put me on the right track. Progress continues
Rick