RMRobotics / FTC_5421_2014-2015

Assets for 2014-2015 Team 5421 FIRST Tech Challenge.
MIT License
6 stars 1 forks source link

Debug fns #31

Closed jimmyli97 closed 10 years ago

jimmyli97 commented 10 years ago

This is actually really easy, see this

jimmyli97 commented 10 years ago

To make this even better we should add conditional compilation.

RobotC can compile for debug or release. We can check for _DEBUG in our debug fns, and only compile if it's on.

jimmyli97 commented 10 years ago

We can also add runtime measurement functions by running a timer

jimmyli97 commented 10 years ago

Ok turns out this is completely unnecessary - RobotC provides all you need to debug. I'm going to write up an issue on creating a debug standard, but for now this is what is necessary:

Runtime measurement is most likely useless because RobotC is so fast already. If we really need to improve performance, a few timers would be very easy to implement (we don't need a whole library for this)