Open tshepherd2016 opened 3 years ago
Did you remember the annotations? @TeleOp or @Autonomous. - That is the number one mistake my team members make.
--Alan
On Thu, Oct 7, 2021 at 8:54 PM tshepherd2016 @.***> wrote:
I can connect my robot controller phone to the web browser for onbot jave on chrome and build my program, but when I open the app on the robot controller and click the opmodes (either teleop or auto) nothing at all is listed. In the web browser, all of our old programs show up when I connect and my new program shows on the list and builds. What am I doing wrong? We have never had this problem before.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3Y73J2AYUSRSWHFCX4MTUFY6MPANCNFSM5FSPOUEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@Teleop is in there
Something else must be wrong because it tries to build a project file that has been deleted and is not even on the list any longer.
It also says that there is an error that it cannot find symbol : class Hardware Pushbot when I try to build the sample Pushbot Teleop POV program.
Sent from my iPhone
On Oct 7, 2021, at 8:21 PM, Alan Smith @.***> wrote:
Did you remember the annotations? @TeleOp or @Autonomous. - That is the number one mistake my team members make.
--Alan
On Thu, Oct 7, 2021 at 8:54 PM tshepherd2016 @.***> wrote:
I can connect my robot controller phone to the web browser for onbot jave on chrome and build my program, but when I open the app on the robot controller and click the opmodes (either teleop or auto) nothing at all is listed. In the web browser, all of our old programs show up when I connect and my new program shows on the list and builds. What am I doing wrong? We have never had this problem before.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3Y73J2AYUSRSWHFCX4MTUFY6MPANCNFSM5FSPOUEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938265251, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV64YMZZOUJ7ZYEMEDEIYC3UFZBRZANCNFSM5FSPOUEA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
If you share your code, I'll take a look.
--Alan
On Fri, Oct 8, 2021 at 8:34 AM tshepherd2016 @.***> wrote:
@Teleop is in there
Something else must be wrong because it tries to build a project file that has been deleted and is not even on the list any longer.
It also says that there is an error that it cannot find symbol : class Hardware Pushbot when I try to build the sample Pushbot Teleop POV program.
Sent from my iPhone
On Oct 7, 2021, at 8:21 PM, Alan Smith @.***> wrote:
Did you remember the annotations? @TeleOp or @Autonomous. - That is the number one mistake my team members make.
--Alan
On Thu, Oct 7, 2021 at 8:54 PM tshepherd2016 @.***> wrote:
I can connect my robot controller phone to the web browser for onbot jave on chrome and build my program, but when I open the app on the robot controller and click the opmodes (either teleop or auto) nothing at all is listed. In the web browser, all of our old programs show up when I connect and my new program shows on the list and builds. What am I doing wrong? We have never had this problem before.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAF3Y73J2AYUSRSWHFCX4MTUFY6MPANCNFSM5FSPOUEA>
. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938265251>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AV64YMZZOUJ7ZYEMEDEIYC3UFZBRZANCNFSM5FSPOUEA>.
Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938607476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3Y72X7JRFJ2RH2TNMFGLUF3QNJANCNFSM5FSPOUEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thanks so much! I’m really thinking it may be an issue with the phone…
This is what my screen looks like. As you can see, there is no TestDrive program listed, but it keep showing up in my build window.
The Drive program we are trying to move to the phone is attached as a text file.
Tonya Shepherd
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: Alan @.> Sent: Friday, October 8, 2021 7:36 AM To: @.> Cc: Tonya @.>; @.> Subject: Re: [FIRST-Tech-Challenge/FtcRobotController] Programs don't appear on connected robot controller after successful build (#194)
If you share your code, I'll take a look.
--Alan
On Fri, Oct 8, 2021 at 8:34 AM tshepherd2016 @.***> wrote:
@Teleop is in there
Something else must be wrong because it tries to build a project file that has been deleted and is not even on the list any longer.
It also says that there is an error that it cannot find symbol : class Hardware Pushbot when I try to build the sample Pushbot Teleop POV program.
Sent from my iPhone
On Oct 7, 2021, at 8:21 PM, Alan Smith @.***> wrote:
Did you remember the annotations? @TeleOp or @Autonomous. - That is the number one mistake my team members make.
--Alan
On Thu, Oct 7, 2021 at 8:54 PM tshepherd2016 @.***> wrote:
I can connect my robot controller phone to the web browser for onbot jave on chrome and build my program, but when I open the app on the robot controller and click the opmodes (either teleop or auto) nothing at all is listed. In the web browser, all of our old programs show up when I connect and my new program shows on the list and builds. What am I doing wrong? We have never had this problem before.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAF3Y73J2AYUSRSWHFCX4MTUFY6MPANCNFSM5FSPOUEA>
. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938265251>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AV64YMZZOUJ7ZYEMEDEIYC3UFZBRZANCNFSM5FSPOUEA>.
Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938607476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3Y72X7JRFJ2RH2TNMFGLUF3QNJANCNFSM5FSPOUEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938608572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV64YM7BYVFXGQILHT3CXHDUF3QT5ANCNFSM5FSPOUEA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.Servo; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.CRServo; import com.qualcomm.robotcore.hardware.DigitalChannel;
/* Copyright (c) 2017 FIRST. All rights reserved.
*
/**
@TeleOp(name="Drive", group="Pushbot")
public class Drive extends OpMode{
/* Declare OpMode members. */
private DcMotor throwingWheel1;
//private DcMotor throwingWheel2;
//private CRServo touchServo;
//private CRServo ringMove1;
//private CRServo ringMove2;
//private CRServo ringMove3;
//private DcMotor leftb;
private DcMotor leftf;
private DcMotor rightb;
// private DcMotor rightf; private DcMotor pickUpWheel; //private DigitalChannel digitalTouch;
/*
* Code to run ONCE when the driver hits INIT
*/
@Override
public void init() {
/* Initialize the hardware variables.
* The init() method of the hardware class does all the work here
*/
//digitalTouch = hardwareMap.get(DigitalChannel.class, "sensor_digital");
leftf = hardwareMap.get(DcMotor.class, "leftf");
//leftb = hardwareMap.get(DcMotor.class, "leftb");
// rightf = hardwareMap.get(DcMotor.class, "rightf");
rightb = hardwareMap.get(DcMotor.class, "rightb");
pickUpWheel = hardwareMap.get(DcMotor.class, "pickUpWheel");
throwingWheel1 = hardwareMap.get(DcMotor.class, "throwingWheel1");
//throwingWheel2 = hardwareMap.get(DcMotor.class, "throwingWheel2");
//touchServo = hardwareMap.get(CRServo.class, "touchServo" );
//ringMove1 = hardwareMap.get(CRServo.class, "ringMove1" );
//ringMove2 = hardwareMap.get(CRServo.class, "ringMove2" );
//ringMove3 = hardwareMap.get(CRServo.class, "ringMove3" );
//digitalTouch.setMode(DigitalChannel.Mode.INPUT);
}
/*
* Code to run REPEATEDLY after the driver hits INIT, but before they hit PLAY
*/
@Override
public void init_loop() {
}
/*
* Code to run ONCE when the driver hits PLAY
*/
@Override
public void start() {
}
/*
* Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
*/
@Override
public void loop() {
double left;
double right;
double left2;
double right2;
// Run wheels in tank mode (note: The joystick goes negative when pushed forwards, so negate it)
left = -gamepad1.right_stick_y;
right = -gamepad1.left_stick_y;
left2 = -gamepad2.left_stick_y;
right2 = -gamepad2.right_stick_y;
if (gamepad2.a){
pickUpWheel.setPower(1);
} else {
pickUpWheel.setPower(0);
}
if (gamepad2.b){
pickUpWheel.setPower(-1);
} else {
pickUpWheel.setPower(0);
}
if (gamepad2.x){
throwingWheel1.setPower(1);
} else {
throwingWheel1.setPower(0);
}
//if (gamepad2.right_stick_y){ *Do not use the right stick for throwing wheel
// throwingWheel1.setPower(1);
//throwingWheel2.setPower(1);
// } else {
//throwingWheel1.setPower(0);
//throwingWheel2.setPower(0);
// }
//if (gamepad2.x){
// touchServo.setPower(.5);
//} else {
// touchServo.setPower(0);
//}
//if (gamepad2.y){
// touchServo.setPower(-.5);
//} else {
// touchServo.setPower(0);
//}
// send the info back to driver station using telemetry function.
// if the digital channel returns true it's HIGH and the button is unpressed.
// if (digitalTouch.getState() == true) {
// telemetry.addData("Digital Touch", "Is Not Pressed");
//} else {
// telemetry.addData("Digital Touch", "Is Pressed");
// }
//telemetry.update();
//if (gamepad2.right_bumper){
// ringMove1.setPower(0.7);
//ringMove2.setPower(0.9);
//ringMove3.setPower(0.5);
//} else {
// ringMove1.setPower(0);
//ringMove2.setPower(0.5);
// ringMove3.setPower(0);
// }
//if (gamepad2.left_bumper){
// ringMove1.setPower(-0.5);
//ringMove2.setPower(0);
//ringMove3.setPower(-0.5);
//} else {
// ringMove1.setPower(0);
//ringMove2.setPower(0.5);
// ringMove3.setPower(0);
//}
leftf.setPower(-right);
//leftb.setPower(-right);
//rightf.setPower(left);
rightb.setPower(left);
throwingWheel1.setPower(0.1*left2);
// Send telemetry message to signify robot running.
telemetry.addData("left", "%.2f", left);
telemetry.addData("right", "%.2f", right);
}
}
@tshepherd2016 - I don't see any problems with the code that would keep it from showing up on a robot controller. I don't have a setup with me here right now, but I built it in our project in Android Studio and didn't have any issues with it building and the two most common problems I see (problems with the annotation and forgetting to put "public" in front of the class) are not there.
Ok, so I’m not crazy. There has to be something wrong with the phone or the app. I updated the apps on the phones last week and I should never have updated. Nothng ever works after I update it.
Thanks for looking at the code. I thought it should work since we used it last year and only changed the name of the program.
Tonya Shepherd
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: Alan @.> Sent: Friday, October 8, 2021 11:22 AM To: @.> Cc: Tonya @.>; @.> Subject: Re: [FIRST-Tech-Challenge/FtcRobotController] Programs don't appear on connected robot controller after successful build (#194)
@tshepherd2016https://github.com/tshepherd2016 - I don't see any problems with the code that would keep it from showing up on a robot controller. I don't have a setup with me here right now, but I built it in our project in Android Studio and didn't have any issues with it building and the two most common problems I see (problems with the annotation and forgetting to put "public" in front of the class) are not there.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938780461, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV64YM35DTTEXD3F37GNUQLUF4LE7ANCNFSM5FSPOUEA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I guess I didn't mention: Make sure the filename and the classname match. Java does not like it when they don't. (the matching is case sensitive - ie, test != Test)
On Fri, Oct 8, 2021 at 12:27 PM tshepherd2016 @.***> wrote:
Ok, so I’m not crazy. There has to be something wrong with the phone or the app. I updated the apps on the phones last week and I should never have updated. Nothng ever works after I update it.
Thanks for looking at the code. I thought it should work since we used it last year and only changed the name of the program.
Tonya Shepherd
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: Alan @.> Sent: Friday, October 8, 2021 11:22 AM To: @.> Cc: Tonya @.>; @.> Subject: Re: [FIRST-Tech-Challenge/FtcRobotController] Programs don't appear on connected robot controller after successful build (#194)
@tshepherd2016https://github.com/tshepherd2016 - I don't see any problems with the code that would keep it from showing up on a robot controller. I don't have a setup with me here right now, but I built it in our project in Android Studio and didn't have any issues with it building and the two most common problems I see (problems with the annotation and forgetting to put "public" in front of the class) are not there.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub< https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938780461>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AV64YM35DTTEXD3F37GNUQLUF4LE7ANCNFSM5FSPOUEA
. Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FIRST-Tech-Challenge/FtcRobotController/issues/194#issuecomment-938790324, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3Y72LH4PU6EHJMMZPFD3UF4LWBANCNFSM5FSPOUEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
From the Driver Station App:
I can connect my robot controller phone to the web browser for onbot jave on chrome and build my program, but when I open the app on the robot controller and click the opmodes (either teleop or auto) nothing at all is listed. In the web browser, all of our old programs show up when I connect and my new program shows on the list and builds. What am I doing wrong? We have never had this problem before.