From 1c732ebf424ec95d92771ead04922477173e6649 Mon Sep 17 00:00:00 2001 From: Rob Deutsch Date: Fri, 7 Jun 2024 12:28:45 +1000 Subject: [PATCH] Added gain documentation to B_G431B_ESC1.ino --- .../hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino b/examples/hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino index ab8e3bba..8d751742 100644 --- a/examples/hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino +++ b/examples/hardware_specific_examples/B_G431B_ESC1/B_G431B_ESC1.ino @@ -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); @@ -107,4 +108,4 @@ void loop() { // user communication command.run(); -} \ No newline at end of file +}