Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

pros millis()

void opcontrol() {
  std::uint32_t now = pros::millis();
  while (true) {
    // Do opcontrol things
    pros::Task::delay_until(&now, 2);
  }
}
Source by pros.cs.purdue.edu #
 
PREVIOUS NEXT
Tagged: #pros
ADD COMMENT
Topic
Name
5+6 =