Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   FTC programming problem (http://www.chiefdelphi.com/forums/showthread.php?t=138689)

Jefferyfan3a 22-10-2015 20:48

FTC programming problem
 
I can't use the
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.util.Range;
and Dcmotor under it.
could u guys help me?
T.Y.

~_~

Sperkowsky 22-10-2015 22:04

Re: FTC programming problem
 
Im not on an FTC team nor a programmer on my frc team but the syntax on that looks weird try this

import com.qualcomm.robotCore.eventLoop.opMode;
import com.qualcomm.robotCore.hardware.dcMotor;
import com.qualcomm.robotCore.hardware.servo;
import com.qualcomm.robotCore.util.range;

You can also try

import com.qualcomm.robotCore.*;

or

import com.qualcomm,robotcore.*;

Ben Wolsieffer 23-10-2015 09:00

Re: FTC programming problem
 
Quote:

Originally Posted by Sperkowsky (Post 1501394)
Im not on an FTC team nor a programmer on my frc team but the syntax on that looks weird try this

import com.qualcomm.robotCore.eventLoop.opMode;
import com.qualcomm.robotCore.hardware.dcMotor;
import com.qualcomm.robotCore.hardware.servo;
import com.qualcomm.robotCore.util.range;

You can also try

import com.qualcomm.robotCore.*;

or

import com.qualcomm,robotcore.*;

IMO, the OP's syntax looks right. I'm not an FTC programmer either, but what you posted is definitely incorrect. I looked at the Javadoc for the FTC code, and the OP is using correct names for the classes and packages.

My guess would be that the project was not set up correctly, and the FTC libraries are not linked to it.


All times are GMT -5. The time now is 10:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi