Added conversions from Darwin sensors to robot code (still need to be tested) and exposed error code flags to the user