Breakaway from the madness and go through the tunnel of love with me!
Home
Go Back   Chief Delphi > FIRST > General Forum
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 15-10-2012, 22:08
Anorak Anorak is offline
Registered User
FRC #2550
 
Join Date: Oct 2012
Location: Oregon City
Posts: 3
Anorak is an unknown quantity at this point
Fisher Price Motor Variable Speed Moderation

How does one change the speed on the variable speed Fisher Price Motors included in the KOP?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-10-2012, 22:51
CalTran's Avatar
CalTran CalTran is offline
MST Rolla Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,451
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Fisher Price Motor Variable Speed Moderation

Are we looking for a method to do so without a motor controller? Generally the speed is changed via programming and some sort of manipulator, usually a joy stick.
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016) | FTC Referee (2017)
Academic Student (Forever)
Reply With Quote
  #3   Spotlight this post!  
Unread 16-10-2012, 09:16
Anorak Anorak is offline
Registered User
FRC #2550
 
Join Date: Oct 2012
Location: Oregon City
Posts: 3
Anorak is an unknown quantity at this point
Re: Fisher Price Motor Variable Speed Moderation

No. We have a Victor on it, but we want to be able to change the speed in the programming. Is there like an open-source Fisher Price puts out for these motors?

(These are the motors you see on those toy-car things you see kids driving around these days...)
Reply With Quote
  #4   Spotlight this post!  
Unread 16-10-2012, 20:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Fisher Price Motor Variable Speed Moderation

What are you using as a control system? Is it something fancy like a cRIO? Something simpler like a VEX Cortex? Something even simpler like an Arduino? Something super-simple like a PIC? How are you programming it?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-10-2012, 23:19
Anorak Anorak is offline
Registered User
FRC #2550
 
Join Date: Oct 2012
Location: Oregon City
Posts: 3
Anorak is an unknown quantity at this point
Re: Fisher Price Motor Variable Speed Moderation

Quote:
Originally Posted by Alan Anderson View Post
What are you using as a control system? Is it something fancy like a cRIO? Something simpler like a VEX Cortex? Something even simpler like an Arduino? Something super-simple like a PIC? How are you programming it?
No, we have a cRIO to control it, and are programming it in C++
Reply With Quote
  #6   Spotlight this post!  
Unread 17-10-2012, 10:45
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,079
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Fisher Price Motor Variable Speed Moderation

Quote:
Originally Posted by Anorak View Post
No, we have a cRIO to control it, and are programming it in C++
Are you using the correct variable types in your code? It sounds like you are using an int or char, which would only allow you to use three speeds.

You should be using a float, which can contain nearly any* decimal value. The speed controller classes, such as Victor, require a value between -1.0 and 1.0. To run at any speed other than full, simply send values like -0.62 or 0.48 or 0.11 or -0.88.


* Within a reasonable magnitude. See this for more info: http://en.wikipedia.org/wiki/Floating_point
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-10-2012, 12:33
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,838
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Fisher Price Motor Variable Speed Moderation

You know...

In terms of coding, FPs aren't all that different from CIMs if they're controlled by a Victor (or, for that matter, a Jaguar). I'm willing to bet that you've got some variable-speed CIM code somewhere around (probably in the drive code). Take a look at that and see if you can't figure out how to copy and adjust it to get the FP working.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #8   Spotlight this post!  
Unread 17-10-2012, 12:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Fisher Price Motor Variable Speed Moderation

You're using C++, a cRIO, a Victor, and a Fisher-Price motor. You want to control the speed of the motor using software? What you're asking is such a basic part of programming an FRC robot that I have to wonder if I don't understand the question.

Pretend that the software is already done and working, and describe how you want to control the speed. Try to be as specific as you can, like "pulling back a little on a joystick will make the motor run slowly forward, pushing forward a lot will make the motor run quickly backward," that sort of thing. That'll help explain more clearly what you want the software to do.
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:05.

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