Go to Post Volunteers are in short supply and we always need more. - Koko Ed [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2012, 16:30
gabrielc97's Avatar
gabrielc97 gabrielc97 is offline
Registered User
AKA: Gabriel
FRC #4029 (Spartan Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Huntington Park CA
Posts: 39
gabrielc97 is an unknown quantity at this point
Re: How to Invert the motors?/ Programming joystick Buttons? LabVIEW

Quote:
Originally Posted by Joe Ross View Post
If you are using arcade drive and your robot forward and reverse is correct but left and right is reversed, there are two problems that both need to be corrected to fix the problem.

First, your left motor PWM and right motor PWM are reversed. Swap PWM 1 and 2.
Second, your, the polarity of your motors are reversed. You can change the Robot Drive inverted booleans in begin.

Thanks, we are tried to change the PWM cables on the robot, and the PWM in the actual program. We found out that the robot isn't receiving the edited program.
__________________
Gabriel
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2012, 18:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to Invert the motors?/ Programming joystick Buttons? LabVIEW

Quote:
Originally Posted by gabrielc97 View Post
Thanks, we are tried to change the PWM cables on the robot, and the PWM in the actual program.
Only change one of them. Make the wires match the program. If you swap both the wires and the program definitions, it will have the same effect as doing neither.

Quote:
We found out that the robot isn't receiving the edited program.
What do you mean? How are you trying to send the program to the robot, what do you expect to happen, and what is happening instead?
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2012, 16:07
haljarrett haljarrett is offline
Registered User
FRC #4189 (Jackson-Barrow Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Jackson Co, Georgia
Posts: 5
haljarrett is an unknown quantity at this point
Re: How to Invert the motors?/ Programming joystick Buttons? LabVIEW

I had a similar problem loading code. In LabView, there are 2 ways to load and run your code. From robotmain.vi, you can click the run button to send your code to your robot in interpreted/connected mode(you run connected to your front panel actively). As soon as you lose power, though, that running code is dropped. This mode is great for debugging. To make your code stay on the cRIO, you must build a Real-Time application(.rtexe) out of your code. To do this, expand the tab that says "Build Specifications" under "RT CompactRIO Target(10.xx.yy.2)". There should be node that says "FRC Robot Boot-up Deployment" Right click and select "build". It will take several minutes to compile the code. When it is done, right click and select deploy. When that is done, either reboot your cRIO or cycle the power. Your code will now be persistent.
Reply With Quote
Reply


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 11:40.

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