Go to Post Namaste. Maybe we all one day will spend our energy trying to raise our own level to match that of the competition rather than trying to tear others down. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2012, 13:03
UriF UriF is offline
Registered User
FRC #2213
 
Join Date: Jan 2012
Location: Israel
Posts: 27
UriF is an unknown quantity at this point
WPILib source?

Hello.

[+] Is it possible to obtain the WPILIB source for C++?

[+] On another note, I have this motor connected through a Jaguar.
I've been able to control this motor using the ArcadeDrive function and a Joystick.

I want to control this motor independently, so I decided to use the Jaguar class instead and use the Jaguar::Set() function and Joystick::GetY() to control it,
as in
Code:
Jaguar myJag(1);
Joystick myStick(1);

myJag.Set(myStick.GetY());
But it appears that it doesn't do anything, and I'm pretty sure I'm specifying the correct ports.
Obviously I would have been able to resolve this problem if i had the WPILib source and checked out the ArcadeDrive function..

Thanks in advance.
  #2   Spotlight this post!  
Unread 10-01-2012, 13:13
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,600
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: WPILib source?

The WPILib source is in C:\windriver\WPILib
  #3   Spotlight this post!  
Unread 10-01-2012, 13:18
UriF UriF is offline
Registered User
FRC #2213
 
Join Date: Jan 2012
Location: Israel
Posts: 27
UriF is an unknown quantity at this point
Re: WPILib source?

Quote:
Originally Posted by Joe Ross View Post
The WPILib source is in C:\windriver\WPILib
Thanks a lot!
  #4   Spotlight this post!  
Unread 10-01-2012, 13:25
andreboos andreboos is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2010
Location: San Diego
Posts: 132
andreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the rough
Re: WPILib source?

The WPILib source is distributed along with Windriver updates. For our team's use on Linux, we host source updates on our own server here for convenience. This is revision 2993 released on January 8, and may become out of date, and is not intended to replace the Windriver updates.
  #5   Spotlight this post!  
Unread 10-01-2012, 14:51
Zuelu562's Avatar
Zuelu562 Zuelu562 is offline
Ready for WPI District!
AKA: Jake Janssens
FRC #3623 (Terror Bots)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Massachusetts
Posts: 340
Zuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to behold
Re: WPILib source?

Quote:
Originally Posted by UriF View Post
[+] On another note, I have this motor connected through a Jaguar.
I've been able to control this motor using the ArcadeDrive function and a Joystick.

I want to control this motor independently, so I decided to use the Jaguar class instead and use the Jaguar::Set() function and Joystick::GetY() to control it,
as in
Code:
Jaguar myJag(1);
Joystick myStick(1);

myJag.Set(myStick.GetY());
But it appears that it doesn't do anything, and I'm pretty sure I'm specifying the correct ports.
Simple troubleshooting because A) I don't have access to a robot to see if we are having the same issue and B) I'm pretty sure I ran into this last year, but I don't remember how or even if we fixed it.

Joystick Port is determined by the driver station. Make sure the joystick is setup to be in the port you specify. This is done on the setup tab of the driver station.

I believe you can write the value of the axis to a float and then use it on a later line, and see if that does anything.
__________________
Team Resume
562 "S.P.A.R.K." - Student Programmer 2008-2011, Field Coach 2011
3623 "Terror Bots" - Technical Mentor, Field Coach 2012 - Present

Volunteer Resume:
BattleCry@WPI 12, 13, 15, 16 - Queuing
BattleCry@WPI 14 - Field Reset
Granite State District Event 2014 - Team Queueing
NEFIRST District Championships '14,'15,'16 - Team Queuing
  #6   Spotlight this post!  
Unread 10-02-2012, 13:03
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: WPILib source?

Anyone hear if there will be an update? The source files seem to be out of date. I was trying to demo windriver debugging and we were trying to debug into the joystick class, and the line numbers that we were getting to using single step, corresponded to comments.

This generally indicates that there is a mismatch between the source version that the debugger sees and the version that was used to compile the library.
  #7   Spotlight this post!  
Unread 10-02-2012, 13:14
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: WPILib source?

Since I have not seen it elsewhere - here is how to use the wpilib source in wind river.

The source is stored in a zip file in the windriver folder. To allow workbench to see the source, so you can use the debugger and step into wpilib code, you need to put a copy of the wpilib source folder into your workspace.

In my case, the zip file is in:

c:\WindRiver\WPILib\WPILibC++Source20120108rev2993 .zip

The source in the zip file is in a folder called wpilib

I extracted the source folder and moved it into my workspace folder. I'm just using the default windriver workspace folder.

c:\WindRiver\workspace\WPILib\

When it is in your workspace, the debugger can find the source so you can see it when you debug into wpilib code. This is very helpful when you want to understand how wpilib does the stuff it does.
Closed Thread


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 01:04.

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