Skip to content

Commit 0611830

Browse files
Merge pull request #407 from rob-deutsch/patch-1
Added gain documentation to B_G431B_ESC1.ino
2 parents 83b606b + 1c732eb commit 0611830

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// Motor instance
88
BLDCMotor motor = BLDCMotor(11);
99
BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
10+
// Gain calculation shown at https://community.simplefoc.com/t/b-g431b-esc1-current-control/521/21
1011
LowsideCurrentSense currentSense = LowsideCurrentSense(0.003f, -64.0f/7.0f, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
1112

1213

@@ -107,4 +108,4 @@ void loop() {
107108

108109
// user communication
109110
command.run();
110-
}
111+
}

0 commit comments

Comments
 (0)