Hello!
I have setup an mblock extension that controls four servo motors. My extension works great as far as moving the servos, but I am attempting to capture encoder readings into an Mblock variable and this is where I’ve hit a snag. I can’t seem to be able to update a variable within my main forever loop (in upload mode) no matter what I’ve tried. In the first image, the encoderA variable is to be set to 130, but as shown, it remains stuck at 128. However, when I instead switch to live mode, my variable is updated no problem, BUT my servos cease to function. So, I am basically just looking to store the value captured by my encoder, into a variable in mBlock whilst in upload mode. I attempted to make a function to do this, but figured it didn’t make sense to continue troubleshooting the function as my variables are not updating no matter where/when I attempt to change them.
Please Advise!
Noah