Contains the functions for initializing and actuating the SWAG motor.
Takes 2 variables of type OutputT and returns nothing. When main calls this function, it tells the swag module which ports to be used for the swag motor.
Takes no variable and drops swags.
Opens the Swag Door
Closes the Swag Door
Pass the arguments of SwagInit
function (two OutputT) into the module static variable SwagOpen and SwagClose
Closedoor
Opendoor
Wait 2ms.
Closedoor
Write 0 to SwagClose output
Write 1 to SwagOpen output
Wait 100ms
Write 0 to SwagOpen output
Write 0 to SwagOpen output
Write 1 to SwagClose output
Wait 100ms
Write 0 to SwagClose output