Skip to content

Instantly share code, notes, and snippets.

View mlodzianck's full-sized avatar

Maciek Tokarski mlodzianck

  • Warsaw, Poland
View GitHub Profile
// Open loop motor control example
#include <SimpleFOC.h>
// BLDC motor & driver instance
// BLDCMotor( pp number , phase resistance)
BLDCMotor motor = BLDCMotor(11 , 0.6);
BLDCDriver3PWM driver = BLDCDriver3PWM(25,26,27);
//target variable
float target_velocity = 2; // rad/s