Skip to main content Link Menu Expand (external link) Document Search Copy Copied

AddDevice::AddDevice(string name, vex::motor* motor)

This constructor adds a motor to the global connectedDevices array.

Parameters

  • name - The name of the motor.
  • motor - The motor to add to the array.

Example

motor motor1 = motor(PORT1);
AddDevice motor1AddDevice("motor1", &motor1);