Interface FakeDevice
- All Known Implementing Classes:
AbstractFakeDevice,FakeAnalogInput,FakeCRServo,FakeDigitalChannel,FakeDistanceSensor,FakeExternalEncoder,FakeGoBildaPinpoint,FakeImu,FakeLimelight3A,FakeMotor,FakeRevColorSensorV3,FakeServo,FakeSparkFunOTOS,FakeTouchSensor,FakeVoltageSensor
public interface FakeDevice
A simulated hardware device with a kinematic plant. The harness ticks every fake device once per
loop with the
FakeTimer's deltaTime. State mutation happens ONLY
in update(double); the SDK getters are pure reads. One exception:
FakeGoBildaPinpoint runs the real SDK driver, whose getter for any register outside the driver's
bulk-read scope reads the bus on every call, on every firmware - and the default scope already leaves out
the device ID, version, yaw scalar, pod offsets, quaternion, pitch and roll; its class comment says more.-
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(double deltaTime) Advance this device's kinematic state bydeltaTimeseconds.
-
Method Details
-
update
void update(double deltaTime) Advance this device's kinematic state bydeltaTimeseconds. Pure and deterministic — no wall-clock reads.- Parameters:
deltaTime- how far to advance, in seconds; the harness passes its fixed tick
-