test
This commit is contained in:
parent
1f10d531ca
commit
f4ce19a7bb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue