The team has switch to V5 text and it does not prompt for the code lines we used to use in coding studio. But after playing around with it I’ve got 4 different lines that all seem to work fine, does it matter which?
FL.spin(vex::directionType::fwd,(Controller1.Axis3.value() + Controller1.Axis1.value()),vex::velocityUnits::pct);
FR.spin(forward,(Controller1.Axis2.value() - Controller1.Axis1.value()),velocityUnits::pct);
BL.spin(forward,(Controller1.Axis3.position(percentUnits::pct) - Controller1.Axis1.position(percentUnits::pct)),velocityUnits::pct);
BR.spin(directionType::fwd,(Controller1.Axis2.position(percentUnits::pct) + Controller1.Axis1.position(percentUnits::pct)),velocityUnits::pct);
Vex had some stuff going on with changing what you needed in those commands throughout versions of vexcode, but basically they are all correct and all work just fine. However, IMO BL.spin(fwd,(Controller1.Axis3.position(pct) - Controller1.Axis1.position(pct)),pct);
is probably the cleanest and easiest to read.
1 Like
That is clean. Thanks for the confirmation of what I thought.
I just find it frustrating that the command template is missing in V5 text for this kind of code and a lot of other common codes used.
No problem. Yeah V5 text had some weird stuff going on between updates and vex has been continuously changing commands for the past like two years, but I think its gonna stay like this for a while. There is a sort of template, but it always includes stuff like vex::directionType::fwd
in it.