2016 Robot Code.
team5593 / tau2016 Goto Github PK
View Code? Open in Web Editor NEW2016 Robot Code
2016 Robot Code
Be aware that in your CustomFunctions.h abs(rawAxis) will return an int http://www.cplusplus.com/reference/cstdlib/abs/ which isn't ideal when checking against a float Use fabs instead http://www.cplusplus.com/reference/cmath/fabs/.
I'd recommend not over-engineering the code by creating simple functions. The extra lines of code will mean extra maintenance. For example you could probably replace the Sign function with the ternary operator:
int sign = (input < 0) ? -1 : 1;
If you do really need the 0 condition then the Sign function is probably warranted as doubling up the ternary operator gets a bit difficult to read, another very important facet of coding when you have to understand it in 6 months time:
int sign = (input < 0) ? -1 : (input > 0) ? 1 : 0;
Aaron
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.