Synchronization of gyroscope problem!

I managed to have a sample of work using the native extension of Gyroscope. I followed the following steps:

(1) download the extension

(2) added the DONKEY file on the library path in Flash Professional CS 5.5

(3) coded as described in the documentation for the extensions

(4) exported the SWF file

(5) compiled the SWF and the extension using ADT

I worked perfectly. I had a turned 3D cube using gyroscope data.

Well, not exactly calibrated because after awhile app seems to have lost direction.

But I read this is normal and you had to use the accelerator to balance it.

I'm not worried about it even if right now.

(6) and then I added a video DisplayObject that is attached to the camera because I need to make a game of AR.

When I test this gyroscope data seems out of sync with the reality of the time lapse (i.e. made rotations appear seconds after)

and this gets worse and worse when the time elapses. Perhaps the video makes gyro data for synchronization.

Do you have an idea how overcome this problem.

I don't know, so I can't fix it myself with the data source Objective C code.

If you can help my kid would be great, I have a presentation demonstration Friday of this week.

Thank you

Nobody answered so... for those interested in the problem:

(1) when the device is set on high rates resolution produces this Gyroscope GAL.

(2) resolved this lower resolution 480 x 288 to 15 images/s

This on an iPad 2, maybe it depends on memory and other things so can not work for iPad 1 or others.

(3) could not use StageVideo. It seems that he can play only local or videos server but no camera! Adobe help please add this in the future.

Here you have a test code to find that what I have worte in this forum is real:

package  {
 import flash.display.Sprite;
 import com.adobe.nativeExtensions.Gyroscope;
 import flash.text.TextField;
 import flash.utils.getTimer;
 import flash.media.Video;
 import flash.media.Camera;
 import flash.display.Shape;
 import flash.events.MouseEvent;
 import flash.events.Event;
 import com.adobe.nativeExtensions.GyroscopeEvent;
 import flash.net.NetStream;
 import flash.media.StageVideo;
 import flash.events.StageVideoAvailabilityEvent;
 import flash.geom.Rectangle;

 public class SampleGyro extends Sprite
 {
  private var _debugTxt:TextField;
  private var _debugShape:Shape;

  private var _gyroscope:Gyroscope;

  private var _previousTime:Number;
  private var _angle:Number = 0;

  private var _video:Video;
  private var _camera:Camera;

  public function SampleGyro()
  {
   if(Gyroscope.isSupported)
   {
    _gyroscope = new Gyroscope();
    _gyroscope.addEventListener(GyroscopeEvent.UPDATE, gyroscopeHandler);
    _previousTime = getTimer();
   }

   stage.addEventListener(MouseEvent.CLICK, clickHandler);   

   _video = new Video();
   _video.visible = false;
   _video.width = stage.stageWidth;
   _video.height = stage.stageHeight;
   addChild(_video);

   _debugShape = new Shape();
   _debugShape.x = stage.stageWidth / 2;
   _debugShape.y = stage.stageHeight / 2;
   _debugShape.z = -10;

   _debugShape.graphics.beginFill(0xDD9900);
   _debugShape.graphics.drawRect(-50, -50, 100, 100);

   addChild(_debugShape);

   _debugTxt = new TextField();
   _debugTxt.width = 200;
   _debugTxt.height = 200;
   addChild(_debugTxt);
  }

  private function clickHandler(event:Event):void
  {
   if(_video.visible)
   {
    _video.attachCamera(null);
    _video.visible = false;
   }
   else
   {
    if(!_camera)
    {
     _camera = Camera.getCamera();
     _camera.setMode(1024, 768, _camera.fps, false);
    }
    _video.attachCamera(_camera);
    _video.visible = true;
   }
  }
  private function gyroscopeHandler(event:GyroscopeEvent)
  {
   var curTime:Number = getTimer();
   var elapsedTime:Number = (curTime - _previousTime) / 1000;
   var radians:Number = event.y * elapsedTime;

   _previousTime = curTime;
   _angle += radians * 180 / Math.PI;

   _debugTxt.text = "DEBUG\n";
   _debugTxt.appendText("rads/sec: "+event.y+"\n");
   _debugTxt.appendText("rads/tick:"+radians+"\n");
   if(_camera)
   {
    _debugTxt.appendText("camera:"+_camera.width+","+_camera.height+","+_camera.fps+"\n");
   }

   _debugShape.rotationY = _angle;
  }
 }

}

The code simply creates a square shape to see visually gyroscopic rotation

A TextField to print the values of gyroscopic rotation Y

And an event to listening to a single CLICK anywhere on the screen to activate the camera

and show the video. Try several values for the dimensions of the camera and you will see

only small (480 x 288 to 15 images/s) values will not add the question of FDA/off-synch

Once you run the app try clicking anywhere on the screen and

Video if poster and you will see the gyro values will come much later.

Tags: Adobe Animate

Similar Questions

  • Muse has published in BC - BC synchronization to the problems of the Muse

    We have a problem with a Muse site that has been published in Business Catalyst. http://www.parkerandassociates.co.nz/

    The client needs access to the file manager which by default with Muse, is not activated, then, in order to allow to this the setting "allow change (incompatible with Muse) online content" in my details was allowed. We noticed that if changes have been made in British Colombia (download of PDF files and linking the theses of text boxes in the pages of Muse) and enabled compatibility has been left on when the site was reopened by us in Muse the feature "Merge the changes" started to "sort out the site. He would begin to highlight each area of text and elements on the page (which none had been published), one by one. In other words, if we just clicked on "Merge all changes" he would remove the entire site, one at a time.  Changes made by the customer in British Colombia were corrupting the file synchronization back to Muse Muse. We tell the client to ensure that the compatibility option is disabled after changes have been made and that seemed to fix things. Initially this stopped the "unraveled" and we were able to continue to merge the browser in publishes the file to Muse, until yesterday. Now, we cannot merge the new changes without this problem arising.


    The site also uses the Blog Modules added by Muse grid adding a catalyst to your site Web Adobe Muse Business Blog


    Any help or advice on everything that happens very appreciated because we have no idea why what is happening and it is starting to resemble the site must be rebuilt in British Colombia and abandon the Muse (of course we don't want do this).


    Thank you

    Hey Grant,

    Sync suppose that changes have been made using in the only edition browser. Changes manually are not taken in charge.

    That said, the merger should not end up sorting out or remove the site. I suppose you're talking about, that it removes the content within individual blocks of text?

    You always have the option to ignore changes made by the text block. This works as long as the manual changes and changes in the browser are made of separate text blocks.

    In addition, the option "Enable editing of online content" affects any synchronization.

    Abhishek

  • Audio synchronization in flash problems

    I is currently experiencing some problems with Flash CS3 audio sync, though I noticed the same problem in Flash 8.

    The problem has to do with receives the sound to keep up with the animation. We were all our audio put on a layer in the main timeline and set mode sync 'stream '. If audio is all in a single file that runs continuously throughout the comic strip (i.e., the cartoon lasts 4 minutes and the only audio track lasts 4 minutes), it is about half a second out of sync at the end of the film.

    However, when it comes to multiple audio files (for example, in a 4-minute cartoon every line of dialogue is its own individual audio file) the noise becomes considerably out of sync - sometimes an audio file will play 4 or 5 seconds before she is supposed to be in the timeline.

    Is there a way to solve these problems, and is there more information on why they occur? The last of them seems more outrageous tto me. 4 or 5 seconds out of sync, sometimes only 10 or 20 seconds in the movie, is quite a bit and is not acceptable. I know that a solution has beeen to keep flash files less than 1000 frames in length, but for my work it is simply not possible.

    The only way I found to solve this problem is to go to your publication
    Parameters and the level of compression set the MP3 to something higher to 16 Kbps. I
    set mine at least 24 kbit/s and it will usually solve the problem of synchronization.

    --
    Adobe Certified Expert
    www.keyframer.com
    www.Mudbubble.com
    -----------------------------------
    (if you want to email me, don't watch)
    -

    "McThrill" wrote in message
    News:g7d9fb$OLC$1@forums. Macromedia.com...
    > I is currently experiencing some problems audio sync with Flash CS3.
    > Although I noticed the same problem in Flash 8.
    >
    > The problem is related to Gets the sound to keep up with the
    > animation. We were all our audio put on a tier dedicated to
    > the
    > main timeline and set mode sync 'stream '. If the audio is all
    > in a
    > file that runs continuously throughout the comic strip (i.e., the cartoon is 4
    (> long minutes and the only audio track is 4 minutes), it's
    > half a
    > second out of sync by the end of the film.
    >
    > However, when it comes to multiple audio files (for example, in a 4)
    > minute
    (> cartoon every line of dialogue is its own individual audio file) the sound
    > becomes considerably out of sync - sometimes an audio file will play 4 or 5
    > seconds before she is supposed to be in the timeline.
    >
    > is there a way to solve these problems, and is there more information on
    > Why
    > they occur? The last of them seems more outrageous tto me. 4 or 5 seconds
    > out
    > sync, sometimes only 10 or 20 seconds in the movie, is quite a bit
    > and not
    > acceptable. I know a solution has beeen to keep flash files
    > under
    > 1000 frames in length, but for my work it is simply not possible.
    >

  • BFSK Tx and Rx synchronization in USRPN210 problem

    Hello

    I try to do an implementation TX and RX of BFSK in USRPN210 using Labview. When I sent desired bits of information with some power indicator, I success to sequences of bits in the receiver. However, I have 2 problems.

    One of them is that, when I searched sequences of bits received, two bits are lost. One of the two bits is the beginning of the sequnces, the other end is end sequences of bits. For example, when I conveyed to 64-bit, I got 62 bits.

    The other problem is that about 20-30 bits are resolved incorrectly until USRP is ready. After that these bits of bad reception, the receiver starts to actually solve the pieces.

    For example, I would like to pass these sequences,

    1111100000111110000011111(Start bit) 0011110011000001(info bit) 1111100000111110000011111(stop bit)

    When I convey these continuous sequences, I got the bits like,

    01010101110 (this sequence is set wrong about 20-30 bits)... 1111000001111100000111110011110011000001111110000011111000001111 (in this sequence of beginning and end of the bits are lost)...

    How can I solve this problem?


  • Automatic synchronization of Z3C problems

    I have probably disabled autosync somewhere in the past, but can't find a way to turn it on.

    It seems that properties framework for using the data, but the menu is missing from the automatic synchronization option. Running on Android 5.1.1.

    Any idea how to get that back, as my Google account is not synchronized and it is difficult to use the calendar.

    Settings-> accounts-> point icon Triple on the right corner of the-> Enable Auto-sync data

  • 'Delete the files from LR', synchronize and related problems / queries.

    It is a question of my own making and can be reduced to my photo storage procedure.  I have download all the photos on an external hard drive and then import those who isn't obviously garbage.  I then go through those in LR and 'keep' or 'delete LR '.  My goal is to keep a relatively small number of photos in LR while I'm working on those.  I don't want to remove the ones I got from LR because they must be brought back into use I want to leave accessible but not seen by LR.  Now for the questions.

    In the Explorer (WIndows PC) is it possible to distinguish photos that are not visible in LR and I can then select and put in a separate folder? I know I can set the flag as "rejected" or tag the image but that is not really help.

    Y at - it no way to stop these photos being 're-discovered' and made visible in LR when synchronize you the folder?

    Any guidance or help would be appreciated.

    Thank you

    I'll use LR for all my photos but still leave the originals on the external hard drive (such as a copy of zero, nothing else).

    Be sure to make backups of everything. You need to do regular and automated backups of your photos and your catalog to another physical disk files!

  • Synchronization CC Photoshop problems

    I am trying to sync my library so my colleague can have both library and I get an error message that says; "Unable to connect to the server. Adobe CC have resolves for this yet?

    Hello

    It sounds like a firewall, Proxy Issue.Please check you have a Proxy configuration, Firewall that prevents creative cloud to connect to the Adobe servers.

    Refer

    Solve the problems of downloading and installation of Adobe Creative Cloud

    Log, activation, or connection errors. CS5.5 and later, Acrobat DC

    Thank you

    ~ Assani

  • synchronization of the problems of media between iOS and Adobe Premiere

    I have tried sync, a test of Adobe video Adobe Premiere today iOS app project. Just added a few clips and sent to the first. How ever in trying to open the XML file in the creative files folder I just get the:

    "The project could not be loaded, it may be damaged or contain obsolete items.

    tried several times. I also put my Adobe project at 30 frames per second as the source media

    no luck

    Anyone who can guide me?

    TNX

    Hi Max,.

    This problem has been resolved, no need to return to 8.1.

    Best,

    Bronwyn

    Community Manager for Adobe Premiere Clip

  • Synchronization Indesign CC problems

    I want to synchronize my indesign settings between my laptop (10.6.8 BONES, early 2008 macbook air) and office (10.8.5 imac 27 in.).

    There is no synchronization option in Indesign CC 9.0 on my macbook air. I don't see where I can update to 9.1 CC either.

    It should look like below. You click on the small button at the bottom left of the status bar:

  • Synchronization of DataGrid problem

    I use flex sdk 3.
    I have two datagrids shares the same data provider.
    I have the following situation.
    1. each DataGrid has a checkbox as itemEditor (DataGrid are identical in the first phase);
    When I change the State of the checkbox in one, the change is reflected in the second DataGrid, only when the focus point drop, but I can not intercept any event changes to the data provider. (And tried).

    2. because the checkbox should be enabled or disabled based on a third information in the item data, I use a simple custom converter point: a vbox manages a checkbox and an accessor get/set data() overrided for VBox.
    I have 'Bindable' tags and everything is broken at the moment. I mean, changes to the data are not visible to others, until I call validateNow() for unchanged data grid.

    The question is what is the problem with the code and if it is the only way to do it, for the event of the witch to call validateNow()?



    See codes

    Finally found...

    Just need to score the editable custom grid under...

  • Sierra mail does not synchronize with my Exchange Server more.

    Dear community.

    After the transition to macOS Sierra Mail is not synchronize with the Exchange Server, so I can't check my e-mail from work. I deleted and reinstalled the exchange account, which did not help with the problem.

    At the same time, my iOS (iOS 10) devices keeping synchronization without any problem.

    Someone has the same problem? Any solution?

    Thank you, David

    Works fine for me on more than one Mac running Sierra. Contact your IT Department.

  • OMG I can't synchronize with the work on my new machine.

    I have two PC, a desktop computer and a laptop, that I bought at the same time and was able to synchronize with zero problems. Now, I've added a second desktop computer, WHO ABSOLUTELY REFUSES TO EVEN PRETEND to SYNC. All three machines are running 31 Firefox. I followed the instructions from web to reset the synchronization version to the new. All THE THREE MACHINES have now told me, 'Sync activated. Firefox will start synchronizing momentarily,"who, it is shocking enough, that's all that never happens. I lived about each article on this site about synchronization support and tried all the different possible combinations of signature, signature, hit the button 30 times, that sort of thing and I am now very frustrated and annoyed. I work online and I need these machines freakin ' and a web browser to work and my favorites and my passwords and my story. Anyone with (effective) words of wisdom would be appreciated, thanks.

    Hi flowerdaemon,
    Thank you for your question. I understand that the third computer will not sync.

    I came across this last week as well when I change the password and add a test profile. That's what I did:

    1. Removed from the account Options/Preferences > Sync
    2. I've compiled a profile folder, do this a habit of losing the school documents.
    3. Added the account again and went to accounts.firefox.com
    4. Logged on this page and I saw the "your sync will begin momentarily.
    5. Waited about 5 minutes for the first synchronization by default.
    6. Then you click on tools > synchronize now

    After that I saw my data and everything was in sync with the other profiles.

  • Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical de

    Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Apple has not renewed the contract with Google to access Google servers.

    If the old version of iPhoto, which are still using Google's servers for the cards and places are either crashing or hanging.  Places are only work in iPhoto 9.5.1 or newer, who use places of Apple servers.

    There is more support for iPhoto from Apple.  You must update iPhoto 9.5.1 with the Mavericks. It would work well, only it is no longer buying this update to Apple.

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    It is very likely.  If iPhoto work very well when you are offline, then your problems will be caused by the connection failed to Googles servers.

    See this: Bug: iPhoto 9.4 crashing when viewing the scene

  • Problem syncing cell to pc "when I plug the USB cord nothing happens."

    Original title: Cell synchronization to pc problems.

    I have Windows Vista and I downloaded the pantech link (p7040) pc suite to synchronize my phone to the pc and when I plug the USB cord nothing happens. The toolbar does not show that something is plugged. What should I do?

    Hello

    Thanks for choosing Microsoft Community.

    Please answer these questions:

    1. have you already tried it with different USB ports / cables?

    2 have you tried it on another computer?

    Let us try these steps and see if that helps:

     

    Method 1: Try again with different USB ports and if it recognizes the phone.

     

    Method 2: Run the following fix - it:

     

    Hardware devices do not work or are not detected in Windows:

    http://support.Microsoft.com/mats/hardware_device_problems/en-us?WA=wsignin1.0

     

    Method 2: Delete all the USB controllers and see if that helps:

    See the following steps:

     

    a. Click Start, type run, select run, type sysdm.cpl in the Open box, and then click OK.

    b. click on the Hardware tab.

    c. click the Device Manager button.

    d. expand Bus USB controllers.

    e. right click on each device under the Bus USB controllers node and then click on uninstall to remove them one at a time.

    f. restart the computer and wait for windows to reinstall the USB controllers.

    g. plug in the removable USB storage device and perform a test to ensure that the problem is solved.

    Hope the helps of information. If you need help, please reply. We will be happy to help you.

  • Hotmail problems

    Hello.

    I recently bought WP7 device that gives me a continuous synchronization of Contacts problem.

    But I discovered my Hotmail account also have problems.

    So my question

    1. is there a specific contact number limit we have on Hotmail? 

    2. I can export contacts, but when I want to import to another account, it cannot perform the operation. Says: HTTP 500 error. What can be a possible problem here

    3. What are the causes of the problems?

    Hello

    This forum deals with aspects of electronic mail on your computer network.

    If the problem related to the Live mail Server, or configure the features of the software, you'll do better by logging and displaying the question on Live Mail support forum.

    My moderator tools cannot transfer messages on the forums of Windows.

    Please re - ask your question on the Forum Windows Live Mail/Hotmail http://windowslivehelp.com/forums.aspx?productid=1

    Jack-MVP Windows Networking. WWW.EZLAN.NET

Maybe you are looking for