Asked — Edited

Ar-Drone V.1 Navdata

Hi, i am trying to get the navdata out of the AR drone while tracking an object. i was able to retrieve th object position using the following script

$filenamex = "c:\logx.txt" %create log for x coordinates% $filenamey = "c:\logy.txt" %create log for y coordinates% :START

%retreive centroide position%

IF ($CameraIsTracking = true) $linex = "$CameraCenterX" $liney = "$CameraCenterY"

%write in the assigned files% fileWriteLine($filenamex, $linex) fileWriteLine($filenamey, $liney) ENDIF sleep(100) GOTO(START)


could you please assist me: how can i retrieve navdata of the gyro, accelerometer and sonar (altitude) while tracking to a log file similarly to the above? i am planning to calculate the positioning by using the following formula S= S0T+vT +0.5aT^2? hence S will be equal S= 0.5aT^2..... i can't find (a- acceleration) without the accelerometer (i am transforming g-force acceleration to m/s^2)....

My aim is to compare the movement of the object with the movement of the drone..

sorry for the long story... best regards ... (carlos@live.ru)


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#1  

I don't understand the scripting language that you've posted. All of the NAV Data is available as variables when a AR Drone Movement Panel has been added.

  1. Load ARC

  2. Project -> Add Controls -> Robots -> AR Drone Movement Panel

  3. Project -> Add Controls -> Scripting -> Variable Watcher

  4. Connect to your AR Drone using the instructions (press the ? question mark button on the AR Drone Movement Panel for a video tutorial)

All of the nav data is available in Variables once the AR drone Movement Panel has been used