|
Re: Labview 2015 joystick help!
The drive code for TeleOp takes whichever joystick axes you intend to use, potentially scales or conditions them, and sends them to RobotDrive.
Assuming you have a skid-steer robot such as the KoP, the first decision is whether you want a tank, where left and right axes drive the left and right wheels directly much like a tank, a bobcat, or a bulldozer. Or whether you want two generally orthogonal axes that are mixed to determine the left and right motor speeds. This feels much more like video game joystick driving with left/right inputs steering and forward/back inputs going front and back.
Once you have decided that, choose which axes from the 360 controller that you want to use. It may be useful to use the USB tab of the DS to identify the numbers. Then on the TeleOp diagram, index out those elements from the Axes array. Wire those into the RobotDrive that you choose to use.
Greg McKaskle
|