Altering Code to Replace a Single-Acting Cylinder with a Double-Acting One

Hey all, in our redesign of our robot we are converting to a double acting cylinder from a single acting one and I am not the programmer. So, as it comes time to alter the code, Im not quite sure what to do. I attached (hopefully, if the embedding worked) our previous code, and I’m not quite sure what I need to do to change it. Any help would be appreciated.

Screen Shot 2021-12-27 at 11.25.27 AM

i don’t use vexcode so take it with a pinch of salt (although the docs don’t seem to contradict me), but the code doesn’t need to change. the only difference between a double-acting and single-acting cylinder is what the solenoid actually does when set to false.

6 Likes