added check for MAIN_STATE_OFFBOARD @#1152 so that we dont get thrown out of this state