Go to Post Enlighten a man who sometimes has difficulty understanding why others stray outside the box, when the box appears to be an optimized and elegant solution. - JVN [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
  #16   Spotlight this post!  
Unread 30-01-2015, 12:08
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Re: Code changes not deploying to robot?

Quote:
Originally Posted by notmattlythgoe View Post
Oops, that should be (0, 1) not (0, 10).
yea, i figured that out myself lol. However it still did not fix the problem, which is rather weird.
Reply With Quote
  #17   Spotlight this post!  
Unread 30-01-2015, 12:11
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Code changes not deploying to robot?

Quote:
Originally Posted by Dinnesy View Post
yea, i figured that out myself lol. However it still did not fix the problem, which is rather weird.
Hmmmm, that should have reversed it. Can you make sure the code saved and try it again?
Reply With Quote
  #18   Spotlight this post!  
Unread 30-01-2015, 12:26
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Re: Code changes not deploying to robot?

Quote:
Originally Posted by notmattlythgoe View Post
Hmmmm, that should have reversed it. Can you make sure the code saved and try it again?
I tested it with a System.out.println("Hello world"); and I can confirm that the code is being deployed.
Reply With Quote
  #19   Spotlight this post!  
Unread 30-01-2015, 12:29
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Code changes not deploying to robot?

Try this:

Code:
myRobot.arcadeDrive(stick.getY(), stick.getX());
If that doesn't work try:

Code:
myRobot.arcadeDrive(stick.getY(), -stick.getX());
Reply With Quote
  #20   Spotlight this post!  
Unread 30-01-2015, 12:50
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Re: Code changes not deploying to robot?

Quote:
Originally Posted by notmattlythgoe View Post
Try this:

Code:
myRobot.arcadeDrive(stick.getY(), stick.getX());
If that doesn't work try:

Code:
myRobot.arcadeDrive(stick.getY(), -stick.getX());
That fixed the problem! thank you so much for all the help

IF you wouldn't mind me picker your brain a little longer however, I notice that when We Drive the robot forward, the right motor turns starts sooner and goes faster, and when we drive it backwards the left one starts sooner and goes faster.

Could this be because we have all the motors motors hooked up with the same polarity, thus when one side of the motors are going forward, the other side's motors are technically going backwards causing a slight delay?
Reply With Quote
  #21   Spotlight this post!  
Unread 30-01-2015, 12:50
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Code changes not deploying to robot?

Quote:
Originally Posted by Dinnesy View Post
That fixed the problem! thank you so much for all the help

IF you wouldn't mind me picker your brain a little longer however, I notice that when We Drive the robot forward, the right motor turns starts sooner and goes faster, and when we drive it backwards the left one starts sooner and goes faster.

Could this be because we have all the motors motors hooked up with the same polarity, thus when one side of the motors are going forward, the other side's motors are technically going backwards?
That is exactly correct.
Reply With Quote
  #22   Spotlight this post!  
Unread 30-01-2015, 13:11
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Re: Code changes not deploying to robot?

Alright. Did As I said I would and everything works great. I'd like to thank you a lot a lot as well as everyone else who gave us a hand with our issue.
Reply With Quote
  #23   Spotlight this post!  
Unread 30-01-2015, 13:12
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Code changes not deploying to robot?

Quote:
Originally Posted by Dinnesy View Post
Alright. Did As I said I would and everything works great. I'd like to thank you a lot a lot as well as everyone else who gave us a hand with our issue.
Absolutely. If you need anything else create a thread and shoot me a PM to let me know its there.
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 13:17.

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