Actually make invert yaw and int8_t and assign it to -1 or 1 so you don't need to add the check below.