public void TestPIDWrite() { using (VictorSP t = new VictorSP(2)) { t.PidWrite(-1); Assert.AreEqual(t.Get(), -1); } }
public void TestPWMHelpersPID() { using (VictorSP t = new VictorSP(2)) { t.PidWrite(-1); Assert.AreEqual(PWMHelpers.ReverseByType(nameof(VictorSP), HalData()["pwm"][2]["raw_value"]), -1); Assert.AreEqual(PWMHelpers.ReverseByType(2), -1); Assert.AreEqual(HalData()["pwm"][2]["value"], -1); } }