Skip to content

Commit

Permalink
Added gain documentation to B_G431B_ESC1.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-deutsch authored Jun 7, 2024
1 parent 6fafa35 commit 1c732eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Motor instance
BLDCMotor motor = BLDCMotor(11);
BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
// Gain calculation shown at https://community.simplefoc.com/t/b-g431b-esc1-current-control/521/21
LowsideCurrentSense currentSense = LowsideCurrentSense(0.003f, -64.0f/7.0f, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);


Expand Down Expand Up @@ -107,4 +108,4 @@ void loop() {

// user communication
command.run();
}
}

0 comments on commit 1c732eb

Please sign in to comment.