I’m confused about the use of **nSysTime **vs. **nPgmTime **in RobotC.
The nPgmTime is described as such:** “This variable is reset when user program first starts running.”**… while the nSysTime is described as “This variable is reset when CORTEX is first powered on.”
When they say “user program” are they talking about the user control generally associated with “driver control” in a competition?
For example, if I want to measure time during a Programming Skills challenge, should I avoid using nPgmTime because it simply does not work outside of user control ???
I’m going to skip the inner workings of the Cortex and answer this question instead: “How should I do timing in the programming skills challenge with RobotC?”
And the answer is with timers, and I’ve attached a guide on how to use them Radio Control - Timers.pdf (1.37 MB)