BottomServo class Reference
Skittle Color Sorter

class BottomServo

extends Servo, Context

The standard servo at the bottom. It acts as an arm to put the Skittles into designated cups.

private Attributes

public Functions

  • BottomServo ()
  • Constructor. Initialize the members.
  • void setup ()
  • Attaches the corresponding pins to the bottom servo object.
  • void update ()
  • Updates the bottom servo. This writes the updated bottom arm angle to the servo. This function should be called in the main loop.
  • void setResult (colorResult result)
  • Sets the result cup that this arm should go to.

Top