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