Page 1 of 1

Gyrosensor Data transfer to another script

Posted: 21 Feb 2018, 00:27
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.

Re: Gyrosensor Data transfer to another script

Posted: 21 Feb 2018, 09:50
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.

Re: Gyrosensor Data transfer to another script

Posted: 21 Feb 2018, 19:28
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
    

Re: Gyrosensor Data transfer to another script

Posted: 22 Feb 2018, 07:44
by coppelia
Hello,

have also a look at this page.

Cheers

Re: Gyrosensor Data transfer to another script

Posted: 22 Feb 2018, 22:14
by erimcanozcinar
Hi,
Thanks a lot guys i have solve the the problem there was a just a writing mistake at the initial. part