I think this code will not work anymore with your drone version The go_to_height() function uses a sensor on the more recent versions of CoDrone.