Configure Vision Sensor in C++ Pro

  1. 2 weeks ago

    For some reason, the configure sensor button no longer appears to be in the robot config file on Vex Coding Studio in C++ Pro. It used to pop up under the line that creates the Vision Sensor Object
    Here is my config file:

    //robot-config.h
    
    vex::brain robotMain;
    vex::controller ctrPrimary = vex::controller(vex::controllerType::primary);
    vex::competition compControl;
    
    vex::motor mtrDriveLeft = vex::motor(vex::PORT1);
    vex::motor mtrDriveRight = vex::motor(vex::PORT10, true);
    vex::motor mtrLiftLeft = vex::motor(vex::PORT3, true);
    vex::motor mtrLiftRight = vex::motor(vex::PORT8);
    vex::motor mtrClaw = vex::motor(vex::PORT4, true);
    vex::motor mtrLauncherAngle = vex::motor(vex::PORT5);
    vex::motor mtrLauncherFire = vex::motor(vex::PORT11);
    vex::motor mtrBallLift = vex::motor(vex::PORT6);
    
    vex::vision::signature SIG_FLAG_RED (1, 7079, 7977, 7528, 409, 1415, 912, 8.199999809265137, 0);
    vex::vision::signature SIG_FLAG_BLUE (2, -4121, -3129, -3625, 13045, 15237, 14141, 9.300000190734863, 0);
    vex::vision::signature SIG_3 (3, 0, 0, 0, 0, 0, 0, 3, 0);
    vex::vision::signature SIG_4 (4, 0, 0, 0, 0, 0, 0, 3, 0);
    vex::vision::signature SIG_5 (5, 0, 0, 0, 0, 0, 0, 3, 0);
    vex::vision::signature SIG_6 (6, 0, 0, 0, 0, 0, 0, 3, 0);
    vex::vision::signature SIG_7 (7, 0, 0, 0, 0, 0, 0, 3, 0);
    vex::vision visLauncher (vex::PORT7, 61, SIG_FLAG_RED, SIG_FLAG_BLUE, SIG_3, SIG_4, SIG_5, SIG_6, SIG_7);
    vex::gyro gyroNav = vex::gyro(robotMain.ThreeWirePort.A);
    
    vex::accelerometer accelLauncherX = vex::accelerometer(robotMain.ThreeWirePort.B);
    vex::accelerometer accelLauncherY = vex::accelerometer(robotMain.ThreeWirePort.C);
    vex::accelerometer accelLauncherZ = vex::accelerometer(robotMain.ThreeWirePort.D);
    vex::digital_out redLightLeft = vex::digital_out(robotMain.ThreeWirePort.E);
    vex::digital_out greenLightLeft = vex::digital_out(robotMain.ThreeWirePort.F);
    vex::digital_out greenLightRight = vex::digital_out(robotMain.ThreeWirePort.G);
    vex::digital_out redLightRight = vex::digital_out(robotMain.ThreeWirePort.H);

    Did I make a mistake in the code or is the configure option moved?

  2. theol0403

    Nov 30 Courtenay, BC, Canada 7842F

    VCS is dumb that way.
    In my experience, opening a new project, creating a new vision sensor (possibly in the Vex C++ Visual Config), clicking the configure button and then switching back to the original project solves the problem.
    Hope that works

  3. [deleted]

    Nov 30
    Deleted 2 weeks ago by DRow
  4. Deleted 2 weeks ago by DRow
 

or Sign Up to reply!