View Single Post
  #1   Spotlight this post!  
Unread 31-01-2015, 13:49
Zephex Zephex is offline
Registered User
FRC #2213
 
Join Date: Dec 2014
Location: Israel
Posts: 2
Zephex is an unknown quantity at this point
Issues with multi-tasking




Alright, so as you guys can see in the pictures above I'm reading the values from X2 and Y2 and putting them into the motor, and I'm also using a gyro in order to stabilize the robot. Problem is, since I can't use a delay function, I'm forced to use a wave function. What I first wanted to ask is if there's a way to not use the wave function and somehow use the delay one without it stopping my enitre loop since I always have to check the values of the gyro. The second question is(if I must use the wave function) why when I'm putting 2 seconds in the frequency(Time2 box), its not actually doing the action for 2 seconds? basically what I'm trying to multitask, since I need to always check the gyro values.

Thanks in advance guys!
Reply With Quote