I’ve been trying to program our practice bot to follow the lines on the ground of the playing field. I’ve been looking at the sample code that LabVIEW supplies, but i can’t quite understand how it integrates with the drive system and how I can program it to work. There are a few resources on how to program the line follower, but no clear directions.
Does anyone have a code that works and can be modified, or advice?
There’s a control named “StraightPower” on the Autonomous Independent vi’s front panel. It’s an array of values, one for each second of autonomous, used when the sensors say the robot should drive straight. Change them to be what you want, then right-click and choose “Data Operations -> Make Current Value Default” to make them stick. Depending on your drivebase configuration, you should probably also change the “Y Power” array, which is used when turning.