changed big_w to ew
orientation computation seems to be working