View unanswered posts | View active topics It is currently Sat Aug 27, 2016 9:25 am

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Motor Speed - Basic Question
Author Message
Rookie

Joined: Wed Mar 14, 2012 3:11 pm
Posts: 8
Motor Speed - Basic Question
Very basic question. Is there a way to MAX out the motor speed on a motor - using coding? We are just using Joystick control. We already changed the internal gears on the motors. Just wanted to see if there was a way to max out the motors in the code, unless they are already set at max value?

------------------------------------------------------------------------------------------------
 Code:#pragma config(Motor,  port2,           frontLEFT,     tmotorVex393, openLoop)#pragma config(Motor,  port3,           backLEFT,      tmotorVex393, openLoop)#pragma config(Motor,  port4,           backRIGHT,     tmotorVex269, openLoop, reversed)#pragma config(Motor,  port5,           frontRIGHT,    tmotorVex269, openLoop)//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//task main(){while(true)   {     // Joystic Control:     motor[port2] = vexRT[Ch2]; //Motor port 2 speed is determined by Ch2 on the VEXnet Transmitter     motor[port3] = vexRT[Ch2]; //Motor port 3 speed is determined by Ch3 on the VEXnet Transmitter     motor[port4] = vexRT[Ch3];     motor[port5] = vexRT[Ch3];}}

----------------------------------------------------------------------------------------------------

Tue Oct 15, 2013 11:06 am

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Re: Motor Speed - Basic Question
The code that you've given should reach the full range of speeds of the motors. If you need a mechanism to move faster, you'll have to increase speed mechanically.

You can fix a motor at the maximum output by assigning the values of 127 or -127 to the motor.

_________________
Ryan Cahoon
RVW Software Developer

Tue Oct 15, 2013 2:31 pm
Rookie

Joined: Wed Mar 14, 2012 3:11 pm
Posts: 8
Re: Motor Speed - Basic Question
Thanks rcahoon

Wed Oct 16, 2013 9:12 am
Display posts from previous:  Sort by
 Page 1 of 1 [ 3 posts ]

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning