Vex c++ VCS

  1. 6 weeks ago

    JuiceBox

    Dec 10 Ohio 6741E

    In vex c++ on VCS does anyone know what value range the joysticks operate on, i can’t seem to find what the range of values that you get when you use Controller1.axis3.value

    @JuiceBox In vex c++ on VCS does anyone know what value range the joysticks operate on, i can’t seem to find what the range of values that you get when you use Controller1.axis3.value

    Controller1.Axis3.value() gives a value from -100 to +100 in VCS C++, where 0 is the joystick at resting position.

  2. [TVA]Connor

    Dec 10 Answer South Texas 1814D

    @JuiceBox In vex c++ on VCS does anyone know what value range the joysticks operate on, i can’t seem to find what the range of values that you get when you use Controller1.axis3.value

    Controller1.Axis3.value() gives a value from -100 to +100 in VCS C++, where 0 is the joystick at resting position.

  3. OscarMNOVA12

    Dec 10 Event Partner, V5 Beta Tester Northern VA and Pittsburgh MASON, 12, 22172

    Based on this it appears to be -100 to +100

    On another note, is there any functional difference between using position versus using value for driver control?

    So like this:

    left.spin(directionType::fwd, Controller1.Axis3.value(), velocityUnits::pct)

    or

    left.spin(directionType::fwd, Controller1.Axis3.position(percentUnits::pct), velocityUnits::pct)
  4. JuiceBox

    Dec 10 Ohio 6741E

    @[TVA Connor]Controller1.Axis3.value() gives a value from -100 to +100 in VCS C++, where 0 is the joystick at resting position.

    Thank you!

  5. JuiceBox

    Dec 10 Ohio 6741E

    @OscarMNOVA12 Based on this it appears to be -100 to +100

    On another note, is there any functional difference between using position versus using value for driver control?

    So like this:

    left.spin(directionType::fwd, Controller1.Axis3.value(), velocityUnits::pct)

    or

    left.spin(directionType::fwd, Controller1.Axis3.position(percentUnits::pct), velocityUnits::pct)

    That's a good question as far as I'm aware there is no functional difference between the two because wouldn't they both be operating from -100 to 100?

 

or Sign Up to reply!