Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Running Robot (http://www.chiefdelphi.com/forums/showthread.php?t=153821)

Mark McLeod 18-01-2017 10:56

Re: Running Robot
 
Check that your motor controllers for the left side are connected with a PWM cable to the roboRIO PWM 0 port, while the right side motor controller is connected to PWM 1. If you have two motors per side then use a PWM splitter on each side.
The default code assumes one motor per side and the left side motor controller connected to PWM 0 on the roboRIO, the right side motor controller connected to PWM 1.

The default project described in screensteps should just work.
The joystick will be in arcade mode y-axis is forward and back, x-axis causes turns.

P.S.
I should have asked what the status lights are doing on your motor controllers (and which model motor controllers you are using-white Spark ones?)?

rich2202 18-01-2017 12:29

Re: Running Robot
 
Quote:

Originally Posted by WalnutsAndBolts (Post 1632896)
I have imaged the roboRIO and set up the radio, but do I need to image or setup anything else?

LabVIEW for FRC and the FRC Driver Station

https://wpilib.screenstepslive.com/s.../13811/c/57243
https://wpilib.screenstepslive.com/s/4485/m/24192

Quote:

Also, how would I write a basic code in labview so that I can use the joystick in the KOP?
Have you done this yet:
https://wpilib.screenstepslive.com/s/4485/m/13811

IMHO: Make sure you can deploy code and have it run ("hello world" type program). Then you can figure out how to get input (joystick) and drive motors. I don't know Labview, but I assume you need to define the USB Joystick before you can start using it in your code. I believe there is a default joystick type drive that you can use to connect the joystick to your drive motors (which you also may need to define).


All times are GMT -5. The time now is 07:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi