This commit is contained in:
David St-Onge 2017-02-20 16:46:35 -05:00
parent 1f10d531ca
commit f4ce19a7bb
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ function updated_neigh(){
neighbors.broadcast(updated, update_no)
}
TARGET_ALTITUDE = 2.0
TARGET_ALTITUDE = 5.0
# Executed once at init time.
function init() {
@ -33,8 +33,8 @@ function step() {
}
# test moveto cmd
if( flight.status == 2 and position.altitude >= TARGET_ALTITUDE-TARGET_ALTITUDE/20.0)
uav_moveto(0.5, 0.5)
#if( flight.status == 2 and position.altitude >= TARGET_ALTITUDE-TARGET_ALTITUDE/20.0)
# uav_moveto(0.5, 0.5)
}
# Executed once when the robot (or the simulator) is reset.