We were following the tutorial by team Caution Tape(@gamania), but realized it used the external gyro sensor. I was wondering if anyone has a version that works with the internal V2 brain sensor. I tried just replacing the part, but my robot is not preforming the desired behavor at all.
Wow thanks, @gamania I wasn’t expecting a reply from the creator. Sorry for such a basic question, but which part of the code needs to be reversed? Do I multiply the rotation reading by a negative one in the output section? Or does
Left motor velocity = Heading - gyrorotation
Change to
Left motor velocity =Heading + Output
?
Thank you for the content you have put out. It has really helped us in our first year.
The 0 - BrainInertial rotation in degrees is so that it reverses the value that is coming in.
Ex. The brain inertial gets that it is rotated 35 degrees, if you do 0 - BrainInertial rotation in degrees it will be -35. So it reverses the output allowing for minimal changes to your code.