def condition_yaw(heading, relative=False):
 if relative:
  is_relative = 1
 else:
  is_relative = 0
 msg = vehicle.message_factory.command_long_encode(0, 0, mavutil.mavlink.MAV_CMD_CONDITION_YAW, 0, heading, 0, 1, is_relative, 0, 0, 0)
 vehicle.send_mavlink(msg)

def condition_yaw ( heading , relative = False ) : if relative : is_relative = 1 else : is_relative = 0 msg = vehicle . message_factory . command_long_encode ( 0 , 0 , mavutil . mavlink . MAV_CMD_CONDITION_YAW , 0 , heading , 0 , 1 , is_relative , 0 , 0 , 0 ) vehicle . send_mavlink ( msg )
send mav_cmd_condition_yaw message to point vehicle at a specified heading .