[JacoPad] Arduino #46
Loading…
Reference in New Issue
Block a user
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 declaration
class Token {
private:
int m_pin; // Pin number connected to the sensor
Add that this pin will measure the resistance.
@ -0,0 +11,4 @@
public:
// Constructor declaration
Token(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 value
int type();
Type should return the instruction name "FORWARD", "LEFT, "RIGHT" ...
Checkout
From your project repository, check out a new branch and test the changes.