Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Test OpMode support #688

Open
cezarmathe opened this issue Jan 30, 2019 · 5 comments
Open

Test OpMode support #688

cezarmathe opened this issue Jan 30, 2019 · 5 comments

Comments

@cezarmathe
Copy link

It would be really convenient to have another OpMode type for tests only that have a separate section in the Driver Station(like Autonomous and TeleOp have).

package org.firstinspires.ftc.teamcode;

import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;

@Test(name = "Test example")
public class TestOpMode extends LinearOpMode {
    @Override
    public void runOpMode() {
        
    }
}
@David10238
Copy link

This actually would be. We can easily have like a dozen of testing op modes

@gearsincorg
Copy link
Collaborator

If you use the "group=" feature in the @autonomous or @TELEOP annotation you can create separate groups for your opmodes in each menu. (eg: you could assign group="match" or group="test") . It's not as separate as having a new pulldown, but it does not require a GUI change. It also allows you to distinguish between Auto and Teleop "test" opmodes.

@cezarmathe
Copy link
Author

We're already using that feature.

@cmacfarl
Copy link
Collaborator

It's not really clear to me how, or where, a third pulldown would fit on the driver station. The mechanics of plumbing a third group wouldn't be too difficult, but getting the UI right might be problematic.

@cezarmathe
Copy link
Author

It wouldn't have to be a pulldown, there could be a menu item in the menu from the top right corner which will lead to a tests screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants