I am having the hardest time with this class. I am converting it to VB.NET but it appears I have hit a brick wall when it comes to my abilities. Maybe someone can help me bring this code up to the latest SDK am using 4.2. It can be in C# I can do the conversion once I have a working class.
I am having difficulty for example with anything that references “PWM”. I am assuming this brushless motor class was made prior to 4.2 SDK and the namespaces have been restructured.
public BrushlessMotor(PWM.Pin pin, Periods period)
{
Period = (uint)period;
this._pwmPin = new PWM(pin);
this._pwmPin.SetPulse(Period, Min);
}
In the method above I cannot get past “PWM.Pin” from showing “The type or namespace name “PWM” could not be found…”