Description
Create (or find) a library for handling unit conversions. This will prevent units from being converted more than once, and gives a straight up value that can be used to pass in properties to components.
Example
const robotWidth: Distance = Units.inches(32);
const robotWidthMeters = robotWidth.meters;
return <RobotRepresentation width={robotWidth} />
Description
Create (or find) a library for handling unit conversions. This will prevent units from being converted more than once, and gives a straight up value that can be used to pass in properties to components.
Example