Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Programming Victors in Java (http://www.chiefdelphi.com/forums/showthread.php?t=126379)

notmattlythgoe 13-02-2014 12:35

Re: Programming Victors in Java
 
Can you swap this in for your window code and tell me what shows up in the netbeans console when you run?

Code:

if(operator.getRawButton(1))
{
        System.out.println("Button 1 Pressed");
        Window.set(-1.0);
}
else if(operator.getRawButton(2))
 {
        System.out.println("Button 2 Pressed");
        Window.set(1.0);
}
else
{
        System.out.println("No Buttons Pressed");
        Window.set(0);
}


18mfogwell 13-02-2014 12:45

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342474)
Can you swap this in for your window code and tell me what shows up in the netbeans console when you run?

Code:

if(operator.getRawButton(1))
{
        System.out.println("Button 1 Pressed");
        Window.set(-1.0);
}
else if(operator.getRawButton(2))
 {
        System.out.println("Button 2 Pressed");
        Window.set(1.0);
}
else
{
        System.out.println("No Buttons Pressed");
        Window.set(0);
}


It downloaded fine, but still did not work. Since the cRIO has connection to it does that mean that its not the Digital Sidecar? or could that be broken?

notmattlythgoe 13-02-2014 12:50

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342484)
It downloaded fine, but still did not work. Since the cRIO has connection to it does that mean that its not the Digital Sidecar? or could that be broken?

What showed up in the console window on netbeans when you were pressing the buttons? That's what I need to know.

18mfogwell 13-02-2014 13:06

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342487)
What showed up in the console window on netbeans when you were pressing the buttons? That's what I need to know.

ant -f C:\\Users\\Developer\\Documents\\NetBeansProjects\ \Competition deploy run
clean:
Deleting directory C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\classes
[crio-compile] ./src, C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/classes
Compiling 2 source files to C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\classes
compile:
preverify:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\preverify
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\preverify.raw.util
[crio-preverify] ./build/classes, , C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify
Expanding: C:\Users\Developer\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\preverify
Expanding: C:\Users\Developer\sunspotfrcsdk\lib\networktables-crio.jar into C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\preverify
jar:
[crio-jar] ./build/preverify, ./resources -> ./build/app.jar
Building jar: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\app.jar
suite:
Created dir: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\suite
[crio-suite] ./build/app.jar -> ./build/suite/image
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.properties]
[Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.xml]
Romizer processed 389 classes and generated 4 files.
Expanding: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\app.jar into C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\suite
Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Comp etition\build\suite
Deleting: C:\Users\Developer\Documents\NetBeansProjects\Comp etition\image.suite.api
deploy:
[crio-configure] Configuration files not included in this version of the sdk
[crio-configure] Checking that crio is configured for Java
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 24.51-b03
Target IP: 10.44.60.2
Network interfaces on host:
Realtek PCIe FE Family Controller: address: 10.44.60.5 netmask: 255.0.0.0 <--- on robot's subnet
Realtek RTL8192CE Wireless LAN 802.11n PCI-E NIC: address: 192.168.1.14 netmask: 255.255.255.254
Connecting FTP @10.44.60.2
[crio-deploy] ./build/suite/image.suite -> 10.44.60.2
Sending local file image.suite
run:
[cRIO] [OTA Server] ********* REBOOTING cRIO *********
[cRIO]
Waiting for cRIO to reboot (1s)
Waiting for cRIO to reboot (2s)
Waiting for cRIO to reboot (3s)
Waiting for cRIO to reboot (4s)
Waiting for cRIO to reboot (5s)
Waiting for cRIO to reboot (6s)
Waiting for cRIO to reboot (7s)
Waiting for cRIO to reboot (8s)
Waiting for cRIO to reboot (9s)
Waiting for cRIO to reboot (10s)
[cRIO]
[cRIO] -> * Loading debug.o: debug
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO]
[cRIO]
[cRIO] VxWorks
[cRIO]
[cRIO] Copyright 1984-2006 Wind River Systems, Inc.
[cRIO]
[cRIO] CPU: cRIO-FRC II
[cRIO] Runtime Name: VxWorks
[cRIO] Runtime Version: 6.3
[cRIO] BSP version: 1.0/0
[cRIO] Created: May 23 2013, 16:00:09
[cRIO] ED&R Policy Mode: Deployed
[cRIO] WDB Comm Type: WDB_COMM_END
[cRIO] WDB: Ready.
[cRIO]
[cRIO] * Loading nisysrpc.out: nisysrpc
[cRIO] * Loading NiRioRpc.out: NiRioRpc
[cRIO] * Loading nivissvc.out: nivissvc
[cRIO] * Loading nivision.out: nivision
[cRIO] task 0x1830d28 (Service Locator Thread 5) deleted: errno=0 (0) status=0 (0)
[cRIO] NI-RIO Server 13.0 started successfully.
[cRIO] task 0x172b2e0 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading visa32.out: visa32
[cRIO] * Loading niserial.out: niserial
[cRIO] task 0x1a09218 (VISA Jungo Init Thread) deleted: errno=196709 (0x30065) status=-1073807360 (0xbfff0000)
[cRIO] * Loading NiFpgaLv.out: NiFpgaLv
[cRIO] * Loading FRC_FPGA_ChipObject.out: FRC_FPGA_ChipObject
[cRIO] task 0x19db4a0 (Service Locator Thread 6) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x19db4a0 (Service Locator Thread 7) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x19db4a0 (Service Locator Thread 8) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading FRC_NetworkCommunication.outtask 0x13a75e8 (nisysapi-mDns) deleted: errno=0 (0) status=0 (0)
[cRIO] : FRC_NetworkCommunication
[cRIO] FRC_NetworkCommunication version: p4-1.4.0a18
[cRIO] FPGA Hardware GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C
[cRIO] FPGA Software GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C
[cRIO] FPGA Hardware Version: 2012
[cRIO] FPGA Software Version: 2012
[cRIO] FPGA Hardware Revision: 1.6.4
[cRIO] FPGA Software Revision: 1.6.4
[cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2012 FRC, Jan 5 2012, 17:20:48
[cRIO]
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 13.0
[cRIO] task 0x1792eb8 (sysapi-rpc) deleted: errno=0 (0) status=0 (0)
[cRIO]
[cRIO] [Squawk VM] Version: 2011 FRC, Nov 5 2011, 14:34:13
[cRIO] FPGA Hardware GUID: 0x1394f6dc1feb42ec6910e5767ed1d22c
[cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9
[cRIO] Default robotInit() method running, consider providing your own
[cRIO] task 0xca7cc8 (worker.0) deleted: errno=0 (0) status=0 (0)

18mfogwell 13-02-2014 13:07

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342487)
What showed up in the console window on netbeans when you were pressing the buttons? That's what I need to know.

Is this what you wanted?

notmattlythgoe 13-02-2014 13:11

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342495)
Is this what you wanted?

Yes. Did you enable the robot before copying the log?

18mfogwell 13-02-2014 13:16

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342496)
Yes. Did you enable the robot before copying the log?

I think so.

[cRIO] Robot Drive... Output not updated often enough.

That is the only line that is not in the previous post, i don't know when it appeared.

notmattlythgoe 13-02-2014 13:18

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342502)
I think so.

[cRIO] Robot Drive... Output not updated often enough.

That is the only line that is not in the previous post, i don't know when it appeared.

And you got just one of those lines?

18mfogwell 13-02-2014 13:21

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342504)
And you got just one of those lines?

Yes, only one.

notmattlythgoe 13-02-2014 13:24

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342508)
Yes, only one.

At the bottom of your operatorControl method can you change the catch block to this:

Code:

catch(Exception e)
{
        e.printStackTrace();
}


18mfogwell 13-02-2014 13:28

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342510)
At the bottom of your operatorControl method can you change the catch block to this:

Code:

catch(Exception e)
{
        e.printStackTrace();
}


Yup I did.

notmattlythgoe 13-02-2014 13:30

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342513)
Yup I did.

Did anything else print out when you loaded the code an enabled?

18mfogwell 13-02-2014 13:33

Re: Programming Victors in Java
 
no

notmattlythgoe 13-02-2014 13:37

Re: Programming Victors in Java
 
Quote:

Originally Posted by 18mfogwell (Post 1342519)
no

What joystick are you using to control this? Is the joystick that you are using to scale the speed of the drive train working when you press the button?

Have you verified that the operator joystick actually works?

18mfogwell 13-02-2014 13:42

Re: Programming Victors in Java
 
Quote:

Originally Posted by notmattlythgoe (Post 1342521)
What joystick are you using to control this? Is the joystick that you are using to scale the speed of the drive train working when you press the button?

Have you verified that the operator joystick actually works?

Yes, we are using the joystick that controls the drive train.


All times are GMT -5. The time now is 18:31.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi