![]() |
[FTC]: FTC Encoder Program with Distance
Hello,
We are trying to program our Autonomous portion using distance with TETRIX DC Motor encoders. The following is our program: Code:
#pragma config(Hubs, S1, HTMotor, HTMotor, HTServo, HTMotor)Regards, The Charging Champions |
Re: [FTC]: FTC Encoder Program with Distance
In pragma, change
#pragma config(Motor, mtr_S1_C1_2, leftBottomDrive, tmotorTetrix, openLoop, encoder) to #pragma config(Motor, mtr_S1_C1_2, leftBottomDrive, tmotorTetrix, PIDControl, encoder) (or just check the box "PID control" in Motor and sensor setup). Obviously, you need to do this for both motors. |
Re: [FTC]: FTC Encoder Program with Distance
Sorry, we forgot to mention that we tried this. It worked on the right wheel, but on the left wheel, it was jerking around and did not move as smoothly.
Is this a building error or a wiring error? Thanks, Charging Champions FTC Team 8660 |
Re: [FTC]: FTC Encoder Program with Distance
I'd guess a building error, but can't say without seeing the robot. Or maybe the encoder cable is damaged? if these are Tetrix motors, the encoder cable is very fragile.
|
| All times are GMT -5. The time now is 17:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi