Skip to content

Commit d88e610

Browse files
Merge branch 'dorothy' into main
2 parents b465048 + 7abeffb commit d88e610

File tree

9 files changed

+1287
-22
lines changed

9 files changed

+1287
-22
lines changed

mazerunner/config.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File Created: Monday, 29th March 2021 11:04:59 pm
55
* Author: Peter Harrison
66
* -----
7-
* Last Modified: Wednesday, 14th April 2021 1:12:15 pm
7+
* Last Modified: Thursday, 29th April 2021 9:44:34 am
88
* Modified By: Peter Harrison
99
* -----
1010
* MIT License
@@ -36,9 +36,9 @@
3636
#include <arduino.h>
3737

3838
// force rewrite of EEPROM settings. Set this when developing
39-
#define ALWAYS_USE_DEFAULT_SETTINGS 1
39+
#define ALWAYS_USE_DEFAULT_SETTINGS 0
4040
//***************************************************************************//
41-
const bool USER_MODE = false;
41+
const bool USER_MODE = true;
4242

4343
//***************************************************************************//
4444
// We need to know about the drive mechanics.
@@ -128,7 +128,7 @@ const int RIGHT_THRESHOLD = 40; // minimum value to register a wall
128128
// Some physical constants that are likely to be board -specific
129129

130130
// with robot against back wall, how much travel is there to the cell center?
131-
const int BACK_WALL_TO_CENTER = 47;
131+
const int BACK_WALL_TO_CENTER = 48;
132132

133133
//***************************************************************************//
134134

@@ -138,14 +138,14 @@ const float LOOP_INTERVAL = (1.0 / LOOP_FREQUENCY);
138138

139139
//***************************************************************************//
140140
// change the revision if the settings structure changes to force rewrte of EEPROM
141-
const int SETTINGS_REVISION = 10319;
141+
const int SETTINGS_REVISION = 10429;
142142
const uint32_t BAUDRATE = 115200;
143143
const int DEFAULT_DECIMAL_PLACES = 5;
144144
const int EEPROM_ADDR_SETTINGS = 0x0000;
145145

146146
//***************************************************************************//
147147
// set this to zero to disable profile data logging over serial
148-
#define DEBUG_LOGGING 1
148+
#define DEBUG_LOGGING 0
149149
// time between logged lined when reporting is enabled (milliseconds)
150150
const int REPORTING_INTERVAL = 10;
151151

mazerunner/motion.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File Created: Wednesday, 24th March 2021 6:29:39 pm
55
* Author: Peter Harrison
66
* -----
7-
* Last Modified: Friday, 23rd April 2021 9:29:56 am
7+
* Last Modified: Friday, 30th April 2021 11:06:46 am
88
* Modified By: Peter Harrison
99
* -----
1010
* MIT License
@@ -223,7 +223,7 @@ void wait_until_distance(float distance) {
223223
*
224224
* @brief performs an integrated, smooth left turn at low speed.
225225
*/
226-
void turn_SS90EL() {
226+
void turn_SS90L_example() {
227227
float run_in = 20.0; // mm
228228
float run_out = 20.0; // mm
229229
float turn_speed = 300; // mm/s
@@ -253,7 +253,7 @@ void turn_SS90EL() {
253253
*
254254
* @brief performs an integrated, smooth right turn at low speed.
255255
*/
256-
void turn_SS90ER() {
256+
void turn_SS90R_example() {
257257
float run_in = 20.0; // mm
258258
float run_out = 20.0; // mm
259259
float turn_speed = 300; // mm/s

mazerunner/motion.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File Created: Wednesday, 24th March 2021 6:29:08 pm
55
* Author: Peter Harrison
66
* -----
7-
* Last Modified: Friday, 23rd April 2021 9:29:46 am
7+
* Last Modified: Friday, 30th April 2021 11:06:46 am
88
* Modified By: Peter Harrison
99
* -----
1010
* MIT License
@@ -44,8 +44,8 @@ void stop_after(float distance);
4444
void wait_until_position(float position);
4545
void wait_until_distance(float distance);
4646

47-
void turn_SS90EL();
48-
void turn_SS90ER();
47+
void turn_SS90L_example();
48+
void turn_SS90R_example();
4949
void turn_around();
5050
void spin_turn(float degrees, float speed, float acceleration);
5151

0 commit comments

Comments
 (0)