![]() |
Re: No clue where to start on Programming...
I have run into yet another problem.
In LabVIEW, I cannot get our other 2 motors to respond to the programming. I've tried with 4-motor and 2-motor drives, and nothing works. We've checked all the hardware and wirings, with nothing working. If anyone can help, it would be great. I made sure I had everything edited properly in Teleop, Begin, and Finish vi's. Motors 3 and 4 were wired into PWMs 3 and 4, with neither working. However, 1 and 2 DO work, but because they were pre-programmed, I have no clue what the problem could be. A simple schematic would be great. A screenshot, anything really. In need of desperate help. |
Re: No clue where to start on Programming...
Quote:
What is the light on the speed controller showing, both before and after you Enable the robot using the Driver Station? |
Re: No clue where to start on Programming...
1 Attachment(s)
Here's what your Begin should look like and the original drive code must be gone.
Things to watch out for include:
That doesn't mean your PWM cables aren't reversed or something. |
Re: No clue where to start on Programming...
Quote:
To answer the previous question, all 4 Jaguars blinked a constant yellow. -The 2 motors that ACTUALLY worked then displayed a solid green or red, depending on their direction of travel. |
Re: No clue where to start on Programming...
Quote:
|
Re: No clue where to start on Programming...
http://imgur.com/pHaX7 --- Teleop.vi
http://imgur.com/hic4V --- Begin.vi http://imgur.com/mE9fR --- Finish.vi As you can see, I removed the original code, and then added in my OWN code. I can successfully deploy the robot code to the cRIO. Then, I switch over to the Classmate and I get Robot Communication and Code. However, when we move the joystick on our controller, motors 3 and 4 DO NOT respond with the code. There is no signal being sent to either Jaguar. Please help. If you know what the problem is, please tell. We are desperate right now. It's not our hardware or wiring. The only solution I can think of is the programming itself. So please explain what my problem is. |
Re: No clue where to start on Programming...
The quick answer is to zip the project folder (Documents/LabVIEW Data/project name) and post it here so we can see what the problem is, or at least isolate it to wiring vs programming.
P.S. Your photo hosting site is blocked here, so I'll take a look when I get home. Potential wiring problems include:
|
Re: No clue where to start on Programming...
I see nothing immediately wrong with the code. How are you deploying it to the robot?
When you say you "switch over to the Classmate", what exactly does that mean? |
Re: No clue where to start on Programming...
I have a Host Computer with LabVIEW downloaded onto it, and the Host computer is what I use for programming. I then deploy the code by pressing the right-facing arrow on-screen. Switching over to the Classmate I mean unplugging the Host computer (Ethernet chord) and plugging into the Classmate (again with an Ethernet chord).
|
Re: No clue where to start on Programming...
That would be bad, since the white arrow only runs in debug mode and automatically shuts down the cRIO code when your laptop disconnects.
Rebooting the cRIO restores previous code, which obviously is a two motor version. Either get a second Ethernet cable and go through a switch, so they can both remain plugged in, and/or download the code permanently. |
Re: No clue where to start on Programming...
We tried reversing the PWM cables, and our battery has full volts.
However, we have NO lights on the Sidecar, and it IS the one provided this year. That being said, 2 of our 4 motors work properly. As if they were "pre-programmed" |
Re: No clue where to start on Programming...
If you go to the Project Explorer -> build specifications -> FRC Robot Boot-up deployment and right click Boot-up Deployment, you should see an option "deploy." Would this work to permanently deploy the code onto the cRIO? If not, is there a way to PERMENANTLY deploy any new/changed code to the cRIO while using a Host computer?
|
Re: No clue where to start on Programming...
Quote:
Do you have 12 volt power connected to the Digital Sidecar's power input from a 20 amp circuit on the Power Distribution Board? You should. There is enough leakage through the signals from the cRIO to power a couple of PWM outputs, but you're not supposed to rely on that accident. To permanently load code to the cRIO, "Build" and then "Run as startup". There's really no use for the "Deploy" command in that popup menu. |
Re: No clue where to start on Programming...
Quote:
The ribbon cable does trickle enough power to maybe run a couple of the PWM outputs (unreliably). |
Re: No clue where to start on Programming...
If you installed everything from the LabVIEW USB you should have the FRC Driver Station program on your host computer. You can start that and run it in place of the ClassMate. If you are plugging your ethernet cables into the Wireless Bridge, you can plug both your host and classmate in at the same time. (Just make sure your host has a unique IP address ie not 10.te.am.6 or 10.te.am.5)
|
| All times are GMT -5. The time now is 22:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi