MarsRoverFirmware icon indicating copy to clipboard operation
MarsRoverFirmware copied to clipboard

Add units library to repo

Open younesr1 opened this issue 3 years ago • 3 comments

Investigate using a units library like this https://github.com/nholthaus/units

it would simplify function names like readAngleDegPerSec() and constants like maxRPM, and will generally be safer

@wmmc88 @cindyli-13 thoughts? this could be an easy task for new members

younesr1 avatar Mar 05 '21 01:03 younesr1

I'd prefer to just standardize units instead. Like ros has a REP that standardizes everything.

wmmc88 avatar Mar 05 '21 01:03 wmmc88

I'm fine with either units library or standardizing units, as long as we're consistent throughout the whole repo

cindyli-13 avatar Mar 05 '21 04:03 cindyli-13

@upadhyaydhruv for starters, create a units library and write a test-units app the shows how to use these units: Amperes, Degrees, Degrees per sec, Newtons

younesr1 avatar Mar 05 '21 14:03 younesr1