Skip to content

Actuators

Nam Tran edited this page Mar 22, 2017 · 2 revisions

Actuators are hardware components that move or control a mechanism or system. They are the equivalent to the muscles of the robot.

You can find the following documentation of each actuator in the library here:

  1. Motor
  2. Solenoid

Motor

Constructor: Motor(pinA, pinB, pwmPin)

  • pinA - Pin A on motor controller
  • pinB - Pin B on motor controller
  • pwm - PWM pin on motor controller

set(speed)

  • Sets the speed of the motor to speed value

Solenoid

Constructor: Motor(pinA, pinB)

  • pinA - Pin A on motor controller
  • pinB - Pin B on motor controller

on()

  • Enables solenoid

off()

  • Disables solenoid

Clone this wiki locally