Skip to content

モータ負荷が重い場合でもキャリブレーションを可能に #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: proxima
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ void setup() {
// driver config
// power supply voltage [V]
driver.voltage_power_supply = 24;
driver.pwm_frequency = 18000; // suggested under 18khz
driver.pwm_frequency = 36000; // suggested under 18khz
driver.init();
// link the motor and the driver
motor.linkDriver(&driver);
// link current sense and the driver
cs.linkDriver(&driver);

// align voltage
motor.voltage_sensor_align = 0.5;
motor.voltage_sensor_align = 1;

// control loop type and torque mode
motor.torque_controller = TorqueControlType::foc_current;
Expand Down