Skip to content

Commit

Permalink
WC first day
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosdePaula committed Jul 6, 2018
1 parent 6f34a26 commit 56cf23c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Firmware/Sloth/src/_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// General Settings
//
#define STOP_BY_TIME false
#define LAP_TIME 20 //in seconds
#define LAP_TIME 5 //in seconds
#define STOP_BY_DISTANCE true
#define FINAL_TARGET_POSITION 24.0 // in meters
// #define FINAL_TARGET_POSITION 1.5
Expand Down
8 changes: 4 additions & 4 deletions Firmware/Sloth/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ int main() {


// Certifies correct operation of encoders
// LOG.printf("Left Encoder: %i \t", LeftEncoder.getPulses());
// LOG.printf("Right Encoder: %i \t", RightEncoder.getPulses());
LOG.printf("Left Encoder: %i \t", LeftEncoder.getPulses());
LOG.printf("Right Encoder: %i \t", RightEncoder.getPulses());
// LOG.printf("%.4f\t", leftDistance);
// LOG.printf("%.4f\t", rightDistance);

Expand All @@ -422,7 +422,7 @@ int main() {

// LOG.printf("%.4f,", currentPosition);
// LOG.printf("%.4f", DIF(leftDistance, rightDistance));

/*
// Checkpoint sensors mapping
// Crossroad
if (checkpoint_left_counter != last_checkpoint_left_counter && checkpoint_right_counter != last_checkpoint_right_counter) {
Expand All @@ -448,7 +448,7 @@ int main() {
// Encoders positions
LOG.printf("%.2f,", leftDistance);
LOG.printf("%.2f", rightDistance);

*/

// LOG.printf("%i", checkpoint_right_counter);
//Test of Mapping
Expand Down
8 changes: 5 additions & 3 deletions Firmware/Sloth/src/settingsSpeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ Setup k3[] { // SlowCurve,Curve, FastCurve, Straight, Stop
// MOTORS 30:1 120mm x 75mm
{0.30, 0.00030, 0.000000, 0.0000030},
// {0.70, 0.00020, 0.000000, 0.0000060},
{0.85, 0.00022, 0.000000, 0.000015},
{1.00, 0.00022, 0.000000, 0.000025},
// {0.85, 0.00022, 0.000000, 0.000015},
{0.50, 0.00040, 0.000000, 0.0000060},
{0.85, 0.00022, 0.000000, 0.000025},
// {1.00, 0.00022, 0.000000, 0.000025},
// {0.85, 0.00014, 0.000000, 0.0000150},
{1.00, 0.00030, 0.000000, 0.0000060},
{1.00, 0.00022, 0.000000, 0.000025},
{0.10, 0.00010, 0.000000, 0.0000010}
};

Expand Down
2 changes: 1 addition & 1 deletion Firmware/Sloth/src/tracks.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Mark WC14_2018[] = {
// {04.14 - 00.00, -10, GAIN_NUMBER[Curve]}, //07
// {04.31 - 00.15, +1.5, GAIN_NUMBER[Straight]}, //08
{04.66 - 00.00, -10, GAIN_NUMBER[Curve]}, //09
{05.20 - 00.20, +1.5, GAIN_NUMBER[Straight]}, //10
{05.20 - 00.30, +1.5, GAIN_NUMBER[Straight]}, //10
{05.45 - 00.00, -10, GAIN_NUMBER[Curve]}, //11
{05.97 - 00.15, +1.5, GAIN_NUMBER[Straight]}, //12
{06.23 - 00.00, -10, GAIN_NUMBER[Curve]}, //13
Expand Down

0 comments on commit 56cf23c

Please sign in to comment.