View Single Post
  #13   Spotlight this post!  
Unread 03-05-2016, 08:46
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: When programming doesn't get enough time

As Bongle said: simulation is everything. We write simulation wrappers for almost every bit of code we do, and test it on a PC before it ever sees the robot.

The key is to structure your code such that it can be executed on a PC - in other words, don't bury calls to the hardware input reading or output setting functions within each code unit. This will allow you to test your code unit off the robot.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote