For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrating with robot

Using a motor controller

Spark Max

1

Wiring

Using a 10 pin data cable connect the data port on the theta to the data prot on the spark max.

2

Programming

Pull in your values using the spark max SparkBase.getAnalog() function. To get the correct value in degrees you need to set the conversion factor properly. To calculate this use (360.0 degrees / 3.3 volts). This will give you a (109.09)degrees per volt conversion factor.

More info can be found here. LINK

Talon FXS

1

Wiring

Using a 10 pin data cable connect the data port on the theta to the data port on the Talon FXS

2

Programming

Pull in your values using the Talon FXS talonFXS.getAnalogVoltage(); function. To get the correct value in degrees you need to multiply this value by a factor. To calculate this use (360.0 degrees / 3.3 volts). This will give you a (109.09)degrees per volt conversion factor.

More info can be found here. LINK

Directly to RIO

1

Wiring

Using the 3 pin Molex SL connector on the THETA make or use a 3 wire cable and plug it into the anaolg ports on the Robo Rio

2

Programming

Pull your values into code using the m_analog.getAverageValue() call. After you set up the port with AnalogInput m_analog = new AnalogInput(0);

More info can be found here. LINK

Last updated