Advertisement
Trainlover08

VEX_AI_SIM/score_checker/score_checker.cpp

Oct 29th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // (VEX_AI_SIM/score_checker/score_checker.cpp)
  2.  
  3. // libraries
  4. #include "include/devices.h"
  5. #include "include/robotFunctions.cpp"
  6.  
  7. // main program
  8. int main() {
  9. cout << "program started" << endl;
  10. Bot bot;
  11. sim.programSetup();
  12. bool sending;
  13.  
  14. while (true) {
  15. if (score_checker->getTime() >= 0) {
  16. sending = true;
  17. while (sending == true) {
  18. bot.score();
  19. bot.currentScore = 0;
  20. sim.delay(32, "msec");
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement