Go to Post FIRST prides itself on safety. It shouldn't be limited to only the pit area. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 19-02-2016, 13:59
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Programming issues

Quote:
Originally Posted by Alan Anderson View Post
You didn't include the Global2.vi file in your project, but I can guess what it contains.

It looks like you have copied an example (Limit Switch?) into your code without understanding what it does. The While loops you have added to Teleop will break the robot program completely. They're going to have to come out. It would probably be best to remove everything having to do with those digital inputs, then see if the robot works otherwise.

Tell us what you want the robot to do with those switch inputs. We'll help you learn how to write the program to do it.
We used the default roborio project to test with and 1 motor spun. We have a splitter coming from PWM 0 and 1 going to 2 victors on each side.

We used a Arduino to send the PWM signal to the motor controllers while they are on the robot and not even 1 out of our 5 Motor controllers worked. Then we took them off to try and switch them and we tested one of the ones that didn't work on the bot but it worked off the bot. We have only tested that one so we don't know if any of the other work. I will test them after school today.

I switched the PWM splitter from 1 to 0 in order to test one of the other motor controllers on the other side and nothing happened even though previously we had 1 motor working with the same code.

I don't even know what to think anymore can someone please help.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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