Skip to content

Commit ace0156

Browse files
Fixes minor ambiguities in comments
1 parent 66aaec3 commit ace0156

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

examples/hardware_specific_examples/Silabs/efr32_hall_sensor_velocity_6pwm/efr32_hall_sensor_velocity_6pwm.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Silabs MG24 6PWM closed loop velocity control example with HALL sensor based rotor postion
2+
* Silabs MG24 6PWM closed loop velocity control example with HALL sensor based rotor position
33
*
44
* HARDWARE CONFIGURATION:
55
* CPU Board: Arduino Nano Matter
@@ -26,7 +26,7 @@ Commander *command;
2626
// Hall sensor instance
2727
HallSensor *sensor;
2828

29-
// Interrupt routine intialisation
29+
// Interrupt routine initialization
3030
// channel A and B callbacks
3131
void doA() { sensor->handleA(); }
3232
void doB() { sensor->handleB(); }
@@ -71,9 +71,9 @@ void setup() {
7171
}
7272
driver->enable();
7373

74-
// HallSensor(int hallA, int hallB , int cpr, int index)
75-
// - hallA, hallB, hallC - HallSensor A, B and C pins
76-
// - pp - pole pairs
74+
// HallSensor(int encA, int encB, int encC, int pp)
75+
// - encA, encB, encC - HallSensor A, B and C pins
76+
// - pp - pole pairs
7777
sensor = new HallSensor(5, 4, 13, 8);
7878
if (!sensor) return;
7979

examples/hardware_specific_examples/Silabs/efr32_open_loop_velocity_6pwm/efr32_open_loop_velocity_6pwm.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ void setup() {
6767
motor->linkDriver(driver);
6868

6969
// default voltage_power_supply
70-
// motor->voltage_limit = 3;
7170
motor->voltage_limit = 0.8f;
7271

7372
// set motion control loop to be used

examples/hardware_specific_examples/Silabs/efr32_torque_velocity_6pwm/efr32_torque_velocity_6pwm.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ HallSensor *sensor;
2929
// Current sensor
3030
LowsideCurrentSense *current_sense;
3131

32-
// Interrupt routine intialisation
32+
// Interrupt routine initialization
3333
// channel A and B callbacks
3434
void doA() { sensor->handleA(); }
3535
void doB() { sensor->handleB(); }
@@ -74,9 +74,9 @@ void setup() {
7474
}
7575
driver->enable();
7676

77-
// HallSensor(int hallA, int hallB , int cpr, int index)
78-
// - hallA, hallB, hallC - HallSensor A, B and C pins
79-
// - pp - pole pairs
77+
// HallSensor(int encA, int encB, int encC, int pp)
78+
// - encA, encB, encC - HallSensor A, B and C pins
79+
// - pp - pole pairs
8080
sensor = new HallSensor(5, 4, 13, 8);
8181
if (!sensor) return;
8282

0 commit comments

Comments
 (0)