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.
Gyrosensor Data transfer to another script
Re: Gyrosensor Data transfer to another script
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.
Have a look at Means of communication in and around V-REP for an overview of methods for moving data around.
-
- Posts: 4
- Joined: 19 Feb 2018, 00:52
Re: Gyrosensor Data transfer to another script
Hi,
This is the code I wrote for transfering the data from gyro script. I did not changed anything in the gyro script.
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
-
- Posts: 4
- Joined: 19 Feb 2018, 00:52
Re: Gyrosensor Data transfer to another script
Hi,
Thanks a lot guys i have solve the the problem there was a just a writing mistake at the initial. part
Thanks a lot guys i have solve the the problem there was a just a writing mistake at the initial. part