Please see the manual for a walkthrough of the drone energetics example.