UStatus uas_orientation_event_get_roll( UASOrientationEvent* event, float* value) { if (event == NULL || value == NULL) return U_STATUS_ERROR; auto ev = static_cast<ubuntu::application::sensors::OrientationEvent*>(event); *value = ev->get_roll(); return U_STATUS_SUCCESS; }
float LCS::roll_units(){ return get_roll() / SCALE; }