jeudi 16 avril 2015

Sending AT command TakeOffCommand [ID=REF, param=,290718208] non-stop


Vote count:

0




I am working on AR.Drone 2.0 control application. I am using javadrone API and library in my project. Here is my code problem: whenever I press TakeOff button in my application, it will keep on sending takeoff commands to drone. Any idea why this will happen? And how to solve this? Thanks.



My code :
private void jButtonTakeOffActionPerformed(java.awt.event.ActionEvent evt){
try
{
// Take off
System.err.println("Taking off");
drone.takeOff();
Thread.sleep(5000);
}catch (IOException ex) {
Logger.getLogger(arDroneFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (InterruptedException ex) {
Logger.getLogger(arDroneFrame.class.getName()).log(Level.SEVERE, null, ex);
}
}


Output of the code:


Taking off


3066 [AWT-EventQueue-0] DEBUG ardrone.ARDrone - State changed from CONNECTING to TAKING_OFF


3066 [Thread-6] DEBUG ardrone.CommandSender - Q[1]Sending AT command TakeOffCommand [ID=REF, param=,290718208]


3166 [Thread-6] DEBUG ardrone.CommandSender - Q[1]Sending AT command TakeOffCommand [ID=REF, param=,290718208]


3266 [Thread-6] DEBUG ardrone.CommandSender - Q[1]Sending AT command TakeOffCommand [ID=REF, param=,290718208]


[These TakeOff AT commands will continuously send to drone]



asked 1 min ago







Sending AT command TakeOffCommand [ID=REF, param=,290718208] non-stop

Aucun commentaire:

Enregistrer un commentaire