You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file of constants that defines all of our hardware-specific numbers.
The robot is full of code that can be reused. A way to ensure reusability is by not hard-coding values directly in the middle of our function bodies. By replacing numbers deep in code with solidly named variables we can place all of our hardware-specific / environment variables inside of a single file. This means a user can change things like motor controllers, pneumatic modules, and sensors without having to dive into the code base. All of our configurations will be available from a single location.
The text was updated successfully, but these errors were encountered:
The robot is full of code that can be reused. A way to ensure reusability is by not hard-coding values directly in the middle of our function bodies. By replacing numbers deep in code with solidly named variables we can place all of our hardware-specific / environment variables inside of a single file. This means a user can change things like motor controllers, pneumatic modules, and sensors without having to dive into the code base. All of our configurations will be available from a single location.
The text was updated successfully, but these errors were encountered: