|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: [FTC]: Robot problems with motor movment
Thanks everyone, your input is much appreciated. I'm not one of the programmers on the team, but I think that I can get in touch with Michael to ask him about your questions. I do know that we are using Robot C, and that we don't use motor encoders. The problem occurs during Teleop and autonomous. Anyways, as I said, Michael would know more about the code, so I'll contact him and ask about all of these questions and for the code.
Thanks, Tom. |
|
#2
|
|||
|
|||
|
|
|
#3
|
||||
|
||||
|
Re: [FTC]: Robot problems with motor movment
Tom & Mike,
First of all. Please be absolutely sure that you have the very latest RobotC (v2.01) installed on your computer and that you have downloaded the very latest firmware version (v7.88) to your brick. Next, open a new program in RobotC using the Teleop template that comes with RobotC. You will notice that it has an empty initializeRobot() routine that is called from the main task just before the waitForStart() statement. Please add this back into your code and then put the following statements into initializeRobot(): Code:
motor(leftMotor) = 0;
motor(rightMotor) = 0;
motor[beltMotor] = 0;
motor[feederMotor] = 0;
motor(shooterMotor) = 0;
Please let me know how you make out. Regards, Mike |
|
#4
|
|||
|
|||
|
Re: [FTC]: Robot problems with motor movment
You issue is likely with floating the motors in ROBOTC:
Code:
else
{
motor(shooterMotor) = 0;
bFloatDuringInactiveMotorPWM = true;
}
You may want to just always float or change the flag back and forth every time before you set any of your motor outputs. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: [FTC]: Motor Problems | fqzeng | FIRST Tech Challenge | 3 | 16-02-2009 19:12 |
| [FTC]: Problems with Motor Encoders? | FTC 2891 | FIRST Tech Challenge | 2 | 16-02-2009 19:03 |
| [FTC]: Random Error with FTC motor control | Xaphiinia | FIRST Tech Challenge | 2 | 01-12-2008 15:39 |
| [FTC]: FTC Servo-Motor Problem with Labview | dnhansen | FIRST Tech Challenge | 1 | 26-10-2008 00:43 |
| [FTC]: [FTC] Motor Controller problems | michael714 | FIRST Tech Challenge | 4 | 14-10-2008 00:33 |