Quadcopter works with RC but unable to takeoff in set_altitude_target.py dronekit

I am able fly quadcopter with RC but when I run dronekit script -> set_altitude_target.py the motors turns in steps slowly. Few days back it worked by due to too much thrust it crashed to ceiling. I am trying to fly indoors.

@Abhishek_Kurhekar,

On onboard log is very helpful in getting to the bottom of issues.

Without a log it’s a guess but my guess is that the vehicle is in Guided mode which requires a position estimate (a GPS or some alternative). If you’re only using attitude targets then it may be possible to use Guided_NoGPS mode.

I use GUIDED_NO_GPS mode only, the problem was with the code after arming waiting time was 10 sec which should be around 2secs.