So I have a simple macro and when I click the button that activates the macro nothing happens. Is there something wrong with my code.
And also I wanted to know if there is a way to make the macro so that when the button is clicked, the tilter goes up -.05 rotations and then depending on how long I hold the button the tray will move.
the tray and lift are inverted so that’s why they have a negative sign there.
void usercontrol(void) {
Controller1.ButtonX.pressed( driverMacros );
// User control code here, inside the loop
// User control code here, inside the loop
while (1) {
}
It seems like your doing this in a competition template, so you would have to put “Controller1.ButtonX.pressed( driverMacros );” inside the while loop.