IFTTT Sender icon IFTTT Sender — Send web-triggered IFTTT events from ARC/EZ-B: configure Maker Webhooks key and trigger applets to control SmartThings, WeMo and other services. Try it →
Asked — Edited
1 Participant

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.5aT2? hence S will be equal S= 0.5aT2..... 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 ... ([email protected])


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#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