Go to Post Listen, my team lost in the finals to that alliance, and I've never suffered a more entertaining arse-kicking. Case closed. - Petey [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-10-2015, 20:48
Jefferyfan3a Jefferyfan3a is offline
Registered User
FTC #9378
 
Join Date: Oct 2015
Location: HI
Posts: 1
Jefferyfan3a is an unknown quantity at this point
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.

~_~
Reply With Quote
  #2   Spotlight this post!  
Unread 22-10-2015, 22:04
Sperkowsky's Avatar
Sperkowsky Sperkowsky is offline
Professional Multitasker
AKA: Samuel Perkowsky
FRC #2869 (Regal Eagles)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Bethpage, NY
Posts: 1,902
Sperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond reputeSperkowsky has a reputation beyond repute
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.*;
Reply With Quote
  #3   Spotlight this post!  
Unread 23-10-2015, 09:00
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: FTC programming problem

Quote:
Originally Posted by Sperkowsky View Post
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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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