How to add a delay before takeoff?

Hi,
I am flying a quadrotor, and I want to add a delayed takeoff command. I found out that if the delay command is placed before takeoff, the quadrotor doesnt enter aouto mode at all - it enters pos-hold instead.

Any solutions to this? How can I delay the takeoff?

Thanks!!

please ask this in the arducopter froum