corbmr / javadrone

Automatically exported from code.google.com/p/javadrone
0 stars 0 forks source link

Implement TakeOff/Landing logic #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Per documentation take off and landing commands needs to be sent repeatedly 
until corresponding status changes in NavData.

I already started working on this, please do not touch this part for now.

Original issue reported on code.google.com by kroko...@gmail.com on 22 May 2011 at 3:01

GoogleCodeExporter commented 9 years ago
Logic partially implemented, but we need to detect takeoff/landing in NavData. 
For this wee need to be able to parse following state information in NavData:

 CVARZ( CTRL_DEFAULT ),
 CVAR( CTRL_INIT ),
 CVAR( CTRL_LANDED ),
 CVAR( CTRL_FLYING ),
 CVAR( CTRL_HOVERING ),
 CVAR( CTRL_TEST ),
 CVAR( CTRL_TRANS_TAKEOFF ),
 CVAR( CTRL_TRANS_GOTOFIX ),
 CVAR( CTRL_TRANS_LANDING ),

See:

Soft/Common/navdata_common.h
Soft/Common/control_states.h

in Parrot SDK.

Original comment by kroko...@gmail.com on 24 May 2011 at 11:00

GoogleCodeExporter commented 9 years ago
I will add this in issue #6. This isssue will depend on it.

Original comment by kroko...@gmail.com on 24 May 2011 at 11:01

GoogleCodeExporter commented 9 years ago
At the moment the drone can only start and land :) As it seems it never gets 
out of the start/land loop and thus sends no other commands..

Original comment by normen667 on 26 May 2011 at 1:00

GoogleCodeExporter commented 9 years ago
I have fixed some state changes and now drone takes off and lands OK with 
CommandLineTest utility. However it does not work with ControlTower app. I will 
be working more on this today.

BTW, I have upgraded my drone to new firmware.

Original comment by kroko...@gmail.com on 26 May 2011 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by kroko...@gmail.com on 26 May 2011 at 11:16