Skip to content

Commit 4330328

Browse files
committed
FIX a lot fo typos
1 parent b4a10d5 commit 4330328

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

examples/encoder_examples/HMBGC_example/HMBGC_example.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void serialEvent() {
123123
// end of input
124124
if (inChar == '\n') {
125125
target_velocity = inputString.toFloat();
126-
Serial.print("Tagret velocity: ");
126+
Serial.print("Target velocity: ");
127127
Serial.println(target_velocity);
128128
inputString = "";
129129
}

examples/encoder_examples/angle_control/angle_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void serialEvent() {
148148
// end of input
149149
if (inChar == '\n') {
150150
target_angle = inputString.toFloat();
151-
Serial.print("Tagret angle: ");
151+
Serial.print("Target angle: ");
152152
Serial.println(target_angle);
153153
inputString = "";
154154
}

examples/encoder_examples/find_pole_pairs_number/find_pole_pairs_number.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void serialEvent() {
140140
// end of input
141141
if (inChar == '\n') {
142142
target_voltage = inputString.toFloat();
143-
Serial.print("Tagret voltage: ");
143+
Serial.print("Target voltage: ");
144144
Serial.println(target_voltage);
145145
inputString = "";
146146
}

examples/encoder_examples/velocity_PI_tuning/velocity_PI_tuning.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ void setup() {
7979
motor.initFOC();
8080

8181
Serial.println("FOC ready.\n");
82-
Serial.println("Update all the PI contorller paramters from the serial temrinal:");
82+
Serial.println("Update all the PI controller parameters from the serial temrinal:");
8383
Serial.println("- Type P100.2 to you the PI_velocity.P in 100.2");
8484
Serial.println("- Type I72.32 to you the PI_velocity.I in 72.32\n");
8585
Serial.println("Update the time constant of the velocity filter:");
8686
Serial.println("- Type F0.03 to you the LPF_velocity.Tf in 0.03\n");
87-
Serial.println("Check the loop executoion time (average):");
87+
Serial.println("Check the loop execution time (average):");
8888
Serial.println("- Type T\n");
8989
Serial.println("To change the target valeocity just enter the value without any prefix.\n");
9090

@@ -171,7 +171,7 @@ void serialEvent() {
171171
timestamp = _micros();
172172
}else{
173173
target_velocity = inputString.toFloat();
174-
Serial.print("Tagret Velocity: ");
174+
Serial.print("Target velocity: ");
175175
Serial.println(target_velocity);
176176
inputString = "";
177177
}

examples/encoder_examples/velocity_control/velocity_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void serialEvent() {
139139
// end of input
140140
if (inChar == '\n') {
141141
target_velocity = inputString.toFloat();
142-
Serial.print("Tagret velocity: ");
142+
Serial.print("Target velocity: ");
143143
Serial.println(target_velocity);
144144
inputString = "";
145145
}

examples/encoder_examples/voltage_control/voltage_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void serialEvent() {
105105
// end of input
106106
if (inChar == '\n') {
107107
target_voltage = inputString.toFloat();
108-
Serial.print("Tagret voltage: ");
108+
Serial.print("Target voltage: ");
109109
Serial.println(target_voltage);
110110
inputString = "";
111111
}

examples/magnetic_sensor_examples/angle_control/angle_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void serialEvent() {
112112
// end of input
113113
if (inChar == '\n') {
114114
target_angle = inputString.toFloat();
115-
Serial.print("Tagret angle: ");
115+
Serial.print("Target angle: ");
116116
Serial.println(target_angle);
117117
inputString = "";
118118
}

examples/magnetic_sensor_examples/find_pole_pairs_number/find_pole_pairs_number.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void serialEvent() {
128128
// end of input
129129
if (inChar == '\n') {
130130
target_voltage = inputString.toFloat();
131-
Serial.print("Tagret voltage: ");
131+
Serial.print("Target voltage: ");
132132
Serial.println(target_voltage);
133133
inputString = "";
134134
}

examples/magnetic_sensor_examples/velocity_PI_tuning/velocity_PI_tuning.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ void setup() {
6262
motor.initFOC();
6363

6464
Serial.println("FOC ready.\n");
65-
Serial.println("Update all the PI contorller paramters from the serial temrinal:");
65+
Serial.println("Update all the PI controller parameters from the serial temrinal:");
6666
Serial.println("- Type P100.2 to you the PI_velocity.P in 100.2");
6767
Serial.println("- Type I72.32 to you the PI_velocity.I in 72.32\n");
6868
Serial.println("Update the time constant of the velocity filter:");
6969
Serial.println("- Type F0.03 to you the LPF_velocity.Tf in 0.03\n");
70-
Serial.println("Check the loop executoion time (average):");
70+
Serial.println("Check the loop execution time (average):");
7171
Serial.println("- Type T\n");
7272
Serial.println("To change the target valeocity just enter the value without any prefix.\n");
7373

@@ -122,8 +122,8 @@ void serialEvent() {
122122
inputString += inChar;
123123
// if the incoming character is a newline
124124
// end of input
125-
if (inChar == '\n') {
126-
if(inputString.charAt(0) == 'P'){
125+
if (inChar == '\n') {
126+
if(inputString.charAt(0) == 'P'){
127127
motor.PI_velocity.P = inputString.substring(1).toFloat();
128128
Serial.print("PI velocity P: ");
129129
Serial.print(motor.PI_velocity.P);
@@ -154,7 +154,7 @@ void serialEvent() {
154154
timestamp = _micros();
155155
}else{
156156
target_velocity = inputString.toFloat();
157-
Serial.print("Tagret Velocity: ");
157+
Serial.print("Target velocity: ");
158158
Serial.println(target_velocity);
159159
inputString = "";
160160
}

0 commit comments

Comments
 (0)