Defines the total traveled distance by the system in km.
const onDistanceChange = (value: number, timestamp?: Date) => { console.log(value, timestamp); }; COBI.motor.distance.read(onDistanceChange); // Instantly get the current value COBI.motor.distance.subscribe(onDistanceChange); COBI.motor.distance.unsubscribe(onDistanceChange);
Last updated 2 years ago