Body: <p>I have a proportional gyro turn myblock that fails when played in a longer program.  The myblock works perfectly fine when played by itself.  The most confusing thing is that the way it fails seems to be random.  Sometimes you play the program and the turn is too far, sometimes it doesn't turn enough and sometimes it works as expected.  We have had similar problems before with other complex myblocks that seem to misbehave when run in as part of a long program but work fine when run by themselves.</p>
  
  <p>I'm not sure the best way to attach code, so I've linked it to the file here.</p>
  
  <p><a href="https://drive.google.com/file/d/0B9eJwUXdFba-T3k0cTdYNTJ0eWc/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/0B9eJwUXdFba-T3k0cTdYNTJ0eWc/view?usp=sharing</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-02T00:41:31.553Z
Comments.Text: I'm not sure I understand what that means.  Do you have an example of where and what I should do?
Comments.UserDisplayName: Lori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-20T13:29:02.427Z
Comments.Text: I've looked at the file, and I don't understand what it's supposed to do. First you have some program called "ManFlower". It includes a bunch of MyBlocks that we are unable to decode, and since you're not showing what they do we can't solve the problem. Then you have another program called "SuperGyroTurn" and it is too confusing and hard to see what your code is doing, without details or at least a detailed walkthrough of the program we won't be able to solve this, so we may have to close your question. Another necessary piece of info required is how the robot moves which is not specified.
Comments.UserDisplayName: mindstormsboi
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-24T15:24:02.210Z
Comments.Text: When you run the program do you reset your bot at the right position?
Comments.UserDisplayName: Vikhyat Agarwal
Tags: <mindstorms><gyro>
Title: myblock for a proportional gyro turn that randomly fails when in a larger program
UserDisplayName: Lori
ThreadText: # myblock for a proportional gyro turn that randomly fails when in a larger program
  
  (Asked by: username_0 on 2017-10-30)
  
  I have a proportional gyro turn myblock that fails when played in a longer program. The myblock works perfectly fine when played by itself. The most confusing thing is that the way it fails seems to be random. Sometimes you play the program and the turn is too far, sometimes it doesn't turn enough and sometimes it works as expected. We have had similar problems before with other complex myblocks that seem to misbehave when run in as part of a long program but work fine when run by themselves.
  
  I'm not sure the best way to attach code, so I've linked it to the file here.
  
  <https://drive.google.com/file/d/0B9eJwUXdFba-T3k0cTdYNTJ0eWc/view?usp=sharing>
  
  **Tags:** mindstorms, gyro
  
  > **Comments:**
  > **username_2**: When you run the program do you reset your bot at the right position?  
  > **username_0**: I'm not sure I understand what that means.  Do you have an example of where and what I should do?  
  > **username_1**: I've looked at the file, and I don't understand what it's supposed to do. First you have some program called "ManFlower". It includes a bunch of MyBlocks that we are unable to decode, and since you're not showing what they do we can't solve the problem. Then you have another program called "SuperGyroTurn" and it is too confusing and hard to see what your code is doing, without details or at least a detailed walkthrough of the program we won't be able to solve this, so we may have to close your question. Another necessary piece of info required is how the robot moves which is not specified.  
  
  ---
  
  ## 0 answers
  
  