Go to Post You must wear safety glasses at all times, so please bring them. - Don Wright [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 12-02-2015, 19:41
calvinred calvinred is offline
Registered User
None #5340
 
Join Date: Jan 2015
Location: United States
Posts: 3
calvinred is an unknown quantity at this point
Motor Speed Definition Not Working

We have defined a motor speed for our talons controlling our lift motors (it is set to 1.0). How it is supposed to work is that when we press a button on our joystick, the motors will go at the speed we tell it too, the problem being that it doesn't. It gives a speed closer to .3 or .4. However, when we hook it up to a battery alone it goes at a speed of 1.0, or when we mess with our wiring so our drivetrain joysticks control those motors (this also puts the motors at 1.0). What could be causing this? Has anyone else dealt with this?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2015, 21:51
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liason
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 80
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: Motor Speed Definition Not Working

Could you post your code for detecting if the button is pressed, setting the motor's speed, and where you are defining your motors?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2015, 21:57
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,564
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Motor Speed Definition Not Working

Also be sure that you are declaring the correct model of speed controller; jaguars have a different PWM range than Talons and Victors.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2015, 22:26
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Motor Speed Definition Not Working

Sounds odd. Post your code here using code tags.

Code:
code goes here
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2015, 09:38
calvinred calvinred is offline
Registered User
None #5340
 
Join Date: Jan 2015
Location: United States
Posts: 3
calvinred is an unknown quantity at this point
Re: Motor Speed Definition Not Working

Alright turns out it was something completely different. Thanks for the replies!
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 08:37.

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