2022 measuringWheel_v3

Dependencies:   Eigen SerialMultiByte SoftPWM measuring_wheel

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Wed Sep 14 06:26:01 2022 +0000
Parent:
6:f4a6cc918833
Commit message:
2022

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
pin_config.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 03 05:37:17 2019 +0000
+++ b/main.cpp	Wed Sep 14 06:26:01 2022 +0000
@@ -4,10 +4,11 @@
 
 Serial pc(USBTX,USBRX, 115200);
 //3,1,5
-MeasuringWheel measuring(PA_1,PA_0, PA_8, PA_9, PB_6,PB_7);
+//MeasuringWheel measuring(PA_1,PA_0, PA_8, PA_9, PB_6,PB_7);
 //1,3,4
 //MeasuringWheel measuring(PB_6, PB_7, PA_8, PA_9, PC_6, PC_7);
 //MeasuringWheel measuring(encoder1_a, encoder1_b, encoder2_a, encoder2_b, encoder3_a, encoder3_b);
+MeasuringWheel measuring(PA_1,PA_0, PA_9,PA_8, PB_7,PB_6);
 
 int main() {
     while (true) {
--- a/pin_config.h	Tue Sep 03 05:37:17 2019 +0000
+++ b/pin_config.h	Wed Sep 14 06:26:01 2022 +0000
@@ -5,11 +5,18 @@
 const PinName mainRX = PD_2;
 const PinName R1370TX = PC_10;
 const PinName R1370RX = PC_11;
-const PinName encoder1_a = PA_0;
-const PinName encoder1_b = PA_1;
+//const PinName encoder1_a = PA_0;
+//const PinName encoder1_b = PA_1;
+//const PinName encoder2_a = PA_8;
+//const PinName encoder2_b = PA_9;
+//const PinName encoder3_a = PB_6;
+//const PinName encoder3_b = PB_7;
+
+const PinName encoder1_a = PA_6;
+const PinName encoder1_b = PA_7;
 const PinName encoder2_a = PA_8;
 const PinName encoder2_b = PA_9;
-const PinName encoder3_a = PB_6;
-const PinName encoder3_b = PB_7;
+const PinName encoder3_a = PB_7;
+const PinName encoder3_b = PB_6;
  
 #endif
\ No newline at end of file