title: How to set copters Attitude via DroneKit -- SET_ATTITUDE_TARGET not working
body: <p>I have Dronekit working properly with SITL sim, however for my project I want to be able to command the attitude of the copter. Obviously I can do this via RC over ride in ALT_HOLD mode, however I don't like that approach. </p>
  
  <p>I have been trying to use the Mavlink message SET_ATTITUDE_TARGET (#82), however when I send the messages to the sim, nothing happens. I have been able to set the velocity and the position, and those work fine. </p>
  
  <p>Here is my function:</p>
  
  <pre><code>def att_msg_mode():
      print "=========== Building Message"
      veh1.mode = VehicleMode("ALT_HOLD")
      msg = veh1.message_factory.set_attitude_target_encode(
      0,
      0,                #target system
      0,                #target component
      0b11100010,       #type mask
      [.9438,0,0,.17364], #q
      0,                #body roll rate
      0,                #body pitch rate
      0,                #body yaw rate
      0)                #thrust
      time.sleep(1)
      veh1.send_mavlink(msg)
      veh1.flush()
      print "=========== Message Sent"
  </code></pre>
  
  <p>Can someone help me out?</p>