Our team plans on having an autonomous mode this year and I’m in charge of doing it. I’m the head programmer of our team and know Labview decently but I’m no pro. We are using a flat sequence with arcade drive subVi’s. Our robot uses arcade drive and I just transferred it over.
I guess my question is what the orange constants for the x and y axis’s do on the Arcade drive subVI? I’ve assumed that it can only be -1 or 1 and that each axis determines either left or right and forward or backward. Would using tank drive make it easier? I’m just curious what the constants represent and what increments would work well.
Our main goal is to just drive straight under the low bar and possibly even score in the low goal if possible.
I think the orange constants you are referring to are wired to the Joystick input parameters.
Arcade and tank are closely related, but let you describe the desired movement with differently encoded parameters. Arcade lets you think use the X and Y displacement to specify how much to turn and how fast and which direction to drive. Tank uses two Y’s. Arcade comes from arcade game input, and tank from bulldozer or tank driving systems.
Pick whichever makes sense to you, and you can even switch back and forth, but that may lead to mistakes in reading the code if someone doesn’t expect it.
The best advice I have is to imagine you want to drive the auto yourself, or you are watching the driver perform the maneuver. Then write code that mimics the (input value, time) pattern. So if the driver only pushes the stick forward half-way, don’t use -1, but use -0.5. If the driver holds the stick forward for 1.5 seconds, that is how long the code delays before the next input.