Go to Post Clearly they're releasing the game hint on 12/21/12 because they know the world's going to end, and they want to keep FIRSTers happy and distracted until the very end. - Kevin Sevcik [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 14-01-2015, 18:26
Intern Intern is offline
Registered User
FRC #3596
 
Join Date: Jan 2014
Location: South Milwaukee
Posts: 17
Intern is an unknown quantity at this point
Single motor 2015

I cannot get a conrtoller ( not joystick ) to the motor open in begin.vi, please help or explain, i set it for controller 1 and it wont let me connect
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2015, 20:39
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Single motor 2015

The default project demonstrates how to open one joystick and one RobotDrive with several motors belonging to it. The references are then saved under a name such as "Joystick 0". That is all that Begin is responsible for.

Later in the program, such as in TeleOp, the code will retrieve the reference to the joystick or motors or other sensors and will perform reads and writes.

I don't entirely understand what error you are receiving, but will be happy to help if you post a more detailed description. You can attach a screenshot if it helps.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2015, 20:55
Intern Intern is offline
Registered User
FRC #3596
 
Join Date: Jan 2014
Location: South Milwaukee
Posts: 17
Intern is an unknown quantity at this point
Re: Single motor 2015

i have a extra cim set up so that if i bush a bumber on my gamepad it will move, and i want to press the opposite bumper and reverse it,
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2015, 21:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Single motor 2015

Ah. So to echo it back to you, it sounds like you want two buttons on the gamepad, one forward, one backward.

In begin, you need to Open the motor and save the refnum with a name. In TeleOp, where the joystick Get has already read the buttons, drop an Index Array node, grow it and wire up the button indices. There are really three conditions for the motor. You either run the motor forward at a speed, backwards at a speed, or you leave it off with a speed of zero.

The attached image shows how the buttons 0 and 1 are choosing any of three speeds and updates the motor controller.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	From Clipboard.PNG
Views:	38
Size:	3.8 KB
ID:	17849  
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 08:53.

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