[JacoPad] Arduino #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Adrien/JacoBot:jacopad"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[JacoPad] Arduino
Good job but need to add an enum to represent each token type and return the enum value.
@ -0,0 +3,4 @@// Token class declarationclass Token {private:int m_pin; // Pin number connected to the sensorAdd that this pin will measure the resistance.
@ -0,0 +11,4 @@public:// Constructor declarationToken(int pin, float base, float limits[3], float min, float max);You will need to add a table with the list of instruction named associated to each type of token or make a enum then return the number of the enum.
Document base, indicate that this this the constant resistance value use in the tension divider (outside of the token)
@ -0,0 +17,4 @@float read();// Method to determine and return the type of token based on the sensor valueint type();Type should return the instruction name "FORWARD", "LEFT, "RIGHT" ...
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.