V5 Inertial Sensor support in Robot Mesh Studio (C++. Python and Blockly)

The new V5 Inertial Sensor is now supported in Robot Mesh Studio programming online at https://www.robotmesh.com/studio

New Blockly blocks:
image

Python
https://www.robotmesh.com/studio/content/docs/vexv5-python/html/classvex_1_1_inertial.html

C++
https://www.robotmesh.com/studio/content/docs/vexv5-cpp/html/classvex_1_1inertial.html

Give your robot a sense of direction!
image

12 Likes

Awesome. And there is a Calibrate block too! Are there any release notes for this version? There are couple of fixes I am waiting for.

1 Like

Is there an offline mode for V5 inertial sensor in robotmesh? Since we can not connect to the wifi all the time during match, it is not available for us to debug the program in the practice fields. Is it accessible to have an offline mode of the V5 inertial sensor module in the current offline robotmesh?

Are angle(), yaw(), orientation(orientationType.YAW) the same - from Python API? Are they 0-360 like heading() or absolute like rotation()? Why so many options for yaw, do they get calculated differently and/or have different potential uses?

Will there be a Mimic module available? Thanks.

The next offline update is not ready to go yet, but it will support the inertial sensor when it is. We’ve been making some big changes to how the offline version is produced which should result in it being much easier for us to keep it up to date when those changes are done, but they’re not quite done.

yaw and orientation(orientationType.YAW) should produce the same result.

Neither. Pitch, roll, and yaw from the same-named methods as well as the returns from orientation are -180 to 180 degrees.

The choice between heading and yaw is mostly programmer preference. The absolute reading has some potential uses, but I can’t think of any that are relevant to most competition robots.

There will be, yes. We wanted to get the code for the physical device out the door as soon as we could, though, which is why this release did not include the Mimic version.

2 Likes

I noticed that this was from back in December. Is there an offline mode for the V5 inertial sensor yet? The programmer for our middle school team is currently using Python but not the block coding. He is using line coding. This is his first year. The team made it to worlds and is wanting to up their game.

Any suggestions would be greatly appreciated.