Go to Post "Maybe if I stare at it long enough our robot will actually work" - frcguy [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 26-01-2014, 15:46
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Coding for Mecanum problems

We've started with a commandbasedrobot template created using RobotBuilder from WPILib for Mecanum drive and exported to windriver.


The problem is that we are trying to call the jaguars within Windriver in drivewithjoystick.cpp but it won't compile correctly.
Is there something wrong with our RobotBuilder template that isn't allowing us to do so?

EDIT: Please move to programming

Last edited by xXhunter47Xx : 26-01-2014 at 15:50.
  #2   Spotlight this post!  
Unread 26-01-2014, 15:55
ArchosR4's Avatar
ArchosR4 ArchosR4 is offline
User of the Matrix
FRC #2130 (Alpha+)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Bonners Ferry
Posts: 7
ArchosR4 is an unknown quantity at this point
In robot builder have you set the drivewithjoysticks command to require your joystick
  #3   Spotlight this post!  
Unread 26-01-2014, 16:32
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Coding for Mecanum problems

It won't allow us to require any controllers in the OI.
  #4   Spotlight this post!  
Unread 26-01-2014, 21:11
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Coding for Mecanum problems

Could you supply the compiler's output?
  #5   Spotlight this post!  
Unread 26-01-2014, 22:34
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Coding for Mecanum problems

We've gotten rid of all the non auto generated code so I'm afraid I can't do that.
  #6   Spotlight this post!  
Unread 26-01-2014, 23:03
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,563
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: Coding for Mecanum problems

Quote:
Originally Posted by xXhunter47Xx View Post
The problem is that we are trying to call the jaguars within Windriver in drivewithjoystick.cpp but it won't compile correctly.
Is there something wrong with our RobotBuilder template that isn't allowing us to do so
It's not a good practice to have a command directly access a piece of hardware, so RobotBuilder doesn't make the hardware public. Rather, you should create a public method of your subsystem that safely accesses the hardware, and then call those methods from your command.
  #7   Spotlight this post!  
Unread 26-01-2014, 23:04
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Coding for Mecanum problems

How can you tell that it won't compile correctly when you don't have any compiler output?
  #8   Spotlight this post!  
Unread 27-01-2014, 13:16
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Coding for Mecanum problems

So it didn't compile correctly because the output told us that there was something wrong, but since the creation of this thread I've gotten rid of all non auto generated code. So now it compiles correctly but there's nothing that we have modified.
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 17:28.

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