HebiRobotics / hebi-matlab-api

Public download and issue tracker of the latest HEBI API for MATLAB
http://docs.hebi.us/tools.html#matlab-api
0 stars 0 forks source link

Replace magic numbers when working with enums #29

Closed ennerf closed 5 years ago

ennerf commented 5 years ago

There are a lot of enum states that are expressed as numbers. They should be replaced with constant definitions, e.g., HebiEnum.ARLowQuality

ennerf commented 5 years ago

I added a snapshot with a HebiEnum class that contains constants for all enum states. Each field is documented via

help HebiEnum.<property>

image

and in doc HebiEnum

image

They are also referenced in the unit sections.

image

I'm not sure whether the * really helps or whether I should just have the unit be HebiEnum

daverolli commented 5 years ago

Prob just HebiEnum?