CrispyBacon1999 / ntcore-react

Quickly connect your React App to NetworkTables
MIT No Attribution
2 stars 0 forks source link

Units library #56

Open CrispyBacon1999 opened 1 year ago

CrispyBacon1999 commented 1 year ago

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} />