can i control the speed of a motor in both autonomous and teleop mode? btw i am programming in java…
Yes, the same code will work in either mode. You should probably be calling the set() method on a Talon/Jaguar/Victor object with a speed parameter that is between -1.0 and 1.0.