Go to Post Bottom line - keep your passion for FIRST and don't let others spoil your fun! - Sean Schuff [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 30-01-2012, 07:52
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
Cool CAN Switching Control Modes in Labview

In our Autonomous mode we have the motors set to Position control mode, and they work.
In our Teleoperated mode we have the motors set to Percent VBus control mode, and the work.
But when we try to implement both of these in the same code, and switch between the Control modes using the Mode Switch block, the motors show up as being in Percent Vbus but we are not able to control them.

Does anyone know if there is anything else we need to reset? Am I missing something?
Thanks in advance
-Mike
__________________
[url="http://mylifeisnerdy.co.cc"]My Life Is NerdyURL]
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2012, 20:58
frenchie4111 frenchie4111 is offline
Registered User
None #1111
 
Join Date: Jan 2010
Location: Southriver
Posts: 23
frenchie4111 is an unknown quantity at this point
Re: CAN Switching Control Modes in Labview

UPDATE: We fixed the code by: Changing it to Voltage mode in Teleoperated, RESETING THE PID VALUES, RE-ENABLING the motor, and then giving it a value between 1 and 13 (Because max voltage is somewhere a little over 12).
__________________
[url="http://mylifeisnerdy.co.cc"]My Life Is NerdyURL]
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2012, 21:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CAN Switching Control Modes in Labview

What do you mean by resetting PID values. Do you mean you set them to 0?

Now that you made those changes, does it now work in %Vbus mode, or does it only work in voltage mode?
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 22:22.

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