Hi!
So I wanted to know if it is possible to check the heading of motors that isnt in any way connectd to the drivetrain.
@OsBreg22500b So when you set up your motor as a non-drive train motor. Let’s propose you are using the motor to lift an “Arm”. When you the start the program, the arm will set its angle to zero and zero turns. As you cause the motor to move forward the angle should increase and the as it goes backwards it should decrease in degrees. Once this happens you can use the
Block to calculate the angle.
You can also jam it against a hard stop and reset the angle at any time. Using the
I find that this works really well to raise you arm to a fixed angle or limit travel for an arm so that it goes to a precise location.
I don’t think it is possible to get the rotational position of a motor attached tonthe drivetrain in blocks
@jpearman is there a way in c++?
sure.
blocks is quite limited is what it exposes.
C++/Python with the graphical configuration crutch is more flexible than blocks.
C++/Python without graphical allows even more flexibility (> 4 motor drivetrain for example)
C++/Python using the VEX VSCode extension allows most advanced use for large programs, multi file projects (not Python), version control etc.
Check non-drivetrain motor heading: program angles, limit, or use code.