View Single Post
  #2   Spotlight this post!  
Unread 22-12-2014, 20:29
Sasha Sasha is offline
Registered User
AKA: Alexander Kirillov
FTC #4137 (IslandBots)
Team Role: Coach
 
Join Date: Sep 2010
Rookie Year: 2008
Location: Long Island, NY
Posts: 58
Sasha is just really niceSasha is just really niceSasha is just really niceSasha is just really niceSasha is just really nice
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.
__________________
FTC 4137 "Islandbots"
islandbots.org
Reply With Quote