Skip to content

Commit 361d043

Browse files
committed
v3 memory optim for Arduino UNO
1 parent 7ed3868 commit 361d043

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/hardware_specific_examples/SimpleFOC-PowerShield/version_v02/single_full_control_example/single_full_control_example.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ InlineCurrentSense current_sense = InlineCurrentSense(0.001, 50.0, A0, A1);
1616

1717
// commander communication instance
1818
Commander command = Commander(Serial);
19-
void doMotor(char* cmd){ command.motor(&motor, cmd); }
19+
// void doMotor(char* cmd){ command.motor(&motor, cmd); }
2020
void doTarget(char* cmd){ command.scalar(&motor.target, cmd); }
2121

2222
void setup() {
@@ -75,7 +75,7 @@ void setup() {
7575
motor.target = 0;
7676

7777
// subscribe motor to the commander
78-
command.add('M', doMotor, "motor");
78+
// command.add('M', doMotor, "motor");
7979
command.add('T', doTarget, "target");
8080

8181
// Run user commands to configure and the motor (find the full command list in docs.simplefoc.com)

examples/hardware_specific_examples/SimpleFOCShield/version_v2/double_full_control_example/double_full_control_example.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ void setup() {
115115
// subscribe motor to the commander
116116
// command.add('A', doMotor1, "motor 1");
117117
// command.add('B', doMotor2, "motor 2");
118-
command.add('A', doTarget1, "target motor 1");
119-
command.add('B', doTarget2, "target motor 2");
118+
command.add('A', doTarget1, "target 1");
119+
command.add('B', doTarget2, "target 2");
120120

121121
// Run user commands to configure and the motor (find the full command list in docs.simplefoc.com)
122-
Serial.println("Double motor sketch ready.");
122+
Serial.println("Motors ready.");
123123

124124
_delay(1000);
125125
}

examples/hardware_specific_examples/SimpleFOCShield/version_v2/single_full_control_example/single_full_control_example.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void setup() {
7878
// command.add('M', doMotor, "motor");
7979

8080
// Run user commands to configure and the motor (find the full command list in docs.simplefoc.com)
81-
Serial.println("Motor commands sketch | Initial motion control > torque/voltage : target 2V.");
81+
Serial.println("Motor ready.");
8282

8383
_delay(1000);
8484
}

0 commit comments

Comments
 (0)