NAV_TAKEOFF failed

I coded an application,and tested by MAVProxy.Application can send commands of “arm/disarm”,“land”.but it failed using NAV_TAKEOFF.
By MAVProxy console,it shew that“NAV_TAKEOFF failed”.
I just send COMPONENT_ARM_DISARM first. it was accepted by MAVProxy…