Gyrosensor Data transfer to another script

Typically: "How do I... ", "How can I... " questions
Post Reply
erimcanozcinar
Posts: 4
Joined: 19 Feb 2018, 00:52

Gyrosensor Data transfer to another script

Post by erimcanozcinar »

Hi guys,

I am working on a quadrotor and i need to transfer my gyro data to quadrotor child script. I transferd my accelerometer data to quadrotor child script but i tried to transfer gyro data with the same method as in accelerometer but it did not work.
Is there a some kind of problem or there is an another way to do for gyrosensor.

Thanks.

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: Gyrosensor Data transfer to another script

Post by fferri »

Care to share any details?

Have a look at Means of communication in and around V-REP for an overview of methods for moving data around.

erimcanozcinar
Posts: 4
Joined: 19 Feb 2018, 00:52

Re: Gyrosensor Data transfer to another script

Post by erimcanozcinar »

Hi,

This is the code I wrote for transfering the data from gyro script. I did not changed anything in the gyro script.

Code: Select all

 gyroCommunicationTube=sim.tubeOpen(0,"gyroCommunicationTube",1)--- sysCall_init


sysCall_actuation
    data=sim.tubeRead(gyroCommunicationTube)
    if (data) then
        angularVariations=sim.unpackFloatTable(data)
    end
    if (angularVariations) then
        print=printToConsole('Euler Angel')
        print=printToConsole(angularVariations[1],angularVariations[2],angularVariations[3])
    end
    

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Gyrosensor Data transfer to another script

Post by coppelia »

Hello,

have also a look at this page.

Cheers

erimcanozcinar
Posts: 4
Joined: 19 Feb 2018, 00:52

Re: Gyrosensor Data transfer to another script

Post by erimcanozcinar »

Hi,
Thanks a lot guys i have solve the the problem there was a just a writing mistake at the initial. part

Post Reply