Error with Pitch when taking off?

I tried to use the following code for take off but the drone just tilt forward. Is something wrong with my pitch?

  1. What should be the correct pitch I should key in?
  2. Has it to do with calibrating my compass?
  3. Is the latitude and longtitude necessary when taking off?

1, # autopilot system id
1, # autopilot component id
22, # command id, ARM/DISARM
0, # confirmation
0, # arm!
0,0,0,0,0,2 # unused parameters for this command