Go to Post we can crank up the volume and let the world know that we are nerds with a pulse! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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-2013, 13:21
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Java Emulator

Hey guys,

I was doing a little bit of research, and found that there used to be an emulator that would allow one to semi-reliably emulate a cRIO locally. However, both of the programs provided seem to have stopped being updated as of 2011. Given the fact that our team has begun to program truly asynconously, we were looking at some way to test outputs and other simple things locally, as opposed to waiting for a robotics meeting. This would greatly increase the speed in which we develop new code. Does anyone know of something that would work for this, or will we just have to deal with FRC only coming out with one for LabView?

Thanks,

Philip Mulford, Team 3373
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2013, 14:37
Fooster Fooster is offline
Registered User
FRC #2429
 
Join Date: Jan 2013
Location: La Canada
Posts: 1
Fooster is an unknown quantity at this point
Re: Java Emulator

While it obviously cannot simulate the whole robot, I have had some success testing SmartDashboard extensions without a robot using the downloads from http://firstforge.wpi.edu/sf/frs/do/...tables_2_0/frs.

Here is my netbeans project: https://github.com/FRC-2429/FakeRobot.

SmartDashboardTest.java is just a copy of the SmartDashboard.java in wpilib with the initialization of the table delayed.

Linking "networktables-desktop-r208.jar" and "wpilib.jar" seems to make it work perfectly.

Last edited by Fooster : 14-01-2013 at 14:54.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2013, 08:53
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Re: Java Emulator

Thanks! Sorry I took so long to reply, but have been trying to implement it. Unfortunately, what you are working on doesn't work in our case, as we are ttrying to test motor output, not textual output. We are currently having problems sending commands to motors, as you can probably see in a newer post. Thanks, though.

Philip Mulford, Team 3373
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
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 09:32.

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