Accidentally modified an autogenerated part of McopySerial. Fixed

This commit is contained in:
Matt McWilliams 2024-06-30 12:10:30 -04:00
parent 966f67882a
commit 84fe1b71be
19 changed files with 16 additions and 265 deletions

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -1,6 +1,6 @@
#include "EndstopCameraShield.h" #include "EndstopCameraShield.h"
EndstopCameraShield::EndstopCameraShield () : motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) { EndstopCameraShield::EndstopCameraShield (uint32_t usPulse, uint8_t microsteps) : motorUsPulse(usPulse), motorMicrosteps(microsteps), motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) {
} }

View File

@ -23,14 +23,14 @@ class EndstopCameraShield {
const uint8_t motorDirectionPin = 7; const uint8_t motorDirectionPin = 7;
const uint8_t motorPulsePin = 8; const uint8_t motorPulsePin = 8;
const uint32_t motorUsPulse = 300; volatile uint32_t motorUsPulse = 300;
const uint8_t motorMicrosteps = 2; //half stepping volatile uint8_t motorMicrosteps = 2; //half stepping
TB6600MotorDriver motor; TB6600MotorDriver motor;
public: public:
EndstopCameraShield(); EndstopCameraShield(uint32_t usPulse, uint8_t microsteps);
void setup(); void setup();
void loop(); void loop();

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -1,6 +1,6 @@
#include "EndstopCameraShield.h" #include "EndstopCameraShield.h"
EndstopCameraShield::EndstopCameraShield () : motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) { EndstopCameraShield::EndstopCameraShield (uint32_t usPulse, uint8_t microsteps) : motorUsPulse(usPulse), motorMicrosteps(microsteps), motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) {
} }

View File

@ -23,14 +23,14 @@ class EndstopCameraShield {
const uint8_t motorDirectionPin = 7; const uint8_t motorDirectionPin = 7;
const uint8_t motorPulsePin = 8; const uint8_t motorPulsePin = 8;
const uint32_t motorUsPulse = 300; volatile uint32_t motorUsPulse = 300;
const uint8_t motorMicrosteps = 2; //half stepping volatile uint8_t motorMicrosteps = 2; //half stepping
TB6600MotorDriver motor; TB6600MotorDriver motor;
public: public:
EndstopCameraShield(); EndstopCameraShield(uint32_t usPulse, uint8_t microsteps);
void setup(); void setup();
void loop(); void loop();

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -1,6 +1,6 @@
#include "EndstopCameraShield.h" #include "EndstopCameraShield.h"
EndstopCameraShield::EndstopCameraShield () : motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) { EndstopCameraShield::EndstopCameraShield (uint32_t usPulse, uint8_t microsteps) : motorUsPulse(usPulse), motorMicrosteps(microsteps), motor(motorEnablePin, motorDirectionPin, motorPulsePin, motorUsPulse, motorMicrosteps) {
} }

View File

@ -23,14 +23,14 @@ class EndstopCameraShield {
const uint8_t motorDirectionPin = 7; const uint8_t motorDirectionPin = 7;
const uint8_t motorPulsePin = 8; const uint8_t motorPulsePin = 8;
const uint32_t motorUsPulse = 300; volatile uint32_t motorUsPulse = 300;
const uint8_t motorMicrosteps = 2; //half stepping volatile uint8_t motorMicrosteps = 2; //half stepping
TB6600MotorDriver motor; TB6600MotorDriver motor;
public: public:
EndstopCameraShield(); EndstopCameraShield(uint32_t usPulse, uint8_t microsteps);
void setup(); void setup();
void loop(); void loop();

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);

View File

@ -1,7 +1,10 @@
#include "EndstopCameraShield.h" #include "EndstopCameraShield.h"
#include "McopySerial.h" #include "McopySerial.h"
EndstopCameraShield cam(); const uint32_t usPulse = 300;
const uint8_t microsteps = 2;
EndstopCameraShield cam(usPulse, microsteps);
void setup () { void setup () {
cam.setup(); cam.setup();

View File

@ -76,27 +76,6 @@ class McopySerial {
const char TAKEUP_FORWARD = 'D'; const char TAKEUP_FORWARD = 'D';
/* END CMD FLAGS */ /* END CMD FLAGS */
/* IDENTIFIERS FLAGS */
const char MCOPY_IDENTIFIER = 'm';
const char CAMERA_IDENTIFIER = 'k';
const char PROJECTOR_IDENTIFIER = 'j';
const char PROJECTOR_CAMERA_IDENTIFIER = 's';
const char CAMERA_PROJECTORS_IDENTIFIER = '5';
const char CAMERA_CAPPER_IDENTIFIER = '8';
const char CAMERA_CAPPER_PROJECTOR_IDENTIFIER = '9';
const char CAMERA_CAPPER_PROJECTORS_IDENTIFIER = '0';
const char PROJECTOR_LIGHT_IDENTIFIER = 'q';
const char PROJECTORS_IDENTIFIER = 'd';
const char PROJECTOR_SECOND_IDENTIFIER = 't';
const char PROJECTOR_CAMERA_LIGHT_IDENTIFIER = 'r';
const char CAMERA_SECOND_IDENTIFIER = 'y';
const char CAMERAS_IDENTIFIER = 'a';
const char CAMERAS_PROJECTOR_IDENTIFIER = '6';
const char CAMERAS_PROJECTORS_IDENTIFIER = '7';
const char CAPPER_IDENTIFIER = 'C';
const char LIGHT_IDENTIFIER = 'o';
/* END IDENTIFIERS FLAGS */
McopySerial(); McopySerial();
void begin(char identity); void begin(char identity);