|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
What mode are you placing the robot in through the driverstation to run your test, Autonomous Teleop Practice or Test?
|
|
#17
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
We have tried all of them and receive the same result of nothing.
|
|
#18
|
||||
|
||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
I would recommend simplifying the operator control for now.
I have never used the Timer function in teleop, so this timer may be throwing your code off, but if the code is not being reached, make sure the conditions of the while loop are being satisfied. Or you could just remove the while loop entirely and see how that works. This may or may not work for SimpleRobot, as I always use IterativeRobot. Does the operatorControl() function run periodically? |
|
#19
|
|||||
|
|||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
So now you're getting no response from your motors? That could be the fault of a great many things. To start narrowing them down, look at some of the many status lights on your robot. When you're trying to move the motors, what are the lights on your motor controllers doing? What is the big orange Robot Signal Light doing? |
|
#20
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
Also my Jaguar motors just constantly blink yellow and my Robot Signal Light continuously blinks when the driver station is off, but it starts to change its blink pattern when I change the operation modes in the driver station. |
|
#21
|
||||||
|
||||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
|
|
#22
|
||||||
|
||||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
As described in my previous post, the while loop and timer are both necessary. Please put them back in. |
|
#23
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
Keep in mind that it may not be an issue with the program at all, it may be our motor controllers which are blinking yellow, as mentioned earlier. |
|
#24
|
||||||
|
||||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Please post your current program (with the disabled() method) as well as the complete netbeans output. It may be helpful to zip your entire project and post it.
If it really is printing that you haven't provided a disabled() method, even though you have, the fact that the speed controllers aren't receiving signal is another symptom, not the root cause. |
|
#25
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
Here is the full code: Code:
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.RobotDrive;
public class RobotTemplate extends SimpleRobot {
RobotDrive chassis = new RobotDrive(1, 2);
Joystick leftStick = new Joystick(1);
Joystick rightStick = new Joystick(2);
/**
* This function is called once each time the robot enters autonomous mode.
*/
public void autonomous() {
chassis.setSafetyEnabled(false);
chassis.drive(-0.5, 0.0);
Timer.delay(2.0);
chassis.drive(0.0, 0.0);
}
/**
* This function is called once each time the robot enters operator control.
*/
public void operatorControl() {
chassis.setSafetyEnabled(true);
while(isOperatorControl() && isEnabled()){
chassis.tankDrive(leftStick, rightStick);
Timer.delay(0.01);
}
}
public void disabled() { //a test to see if disabled() is ever reached
chassis.setSafetyEnabled(false);
chassis.drive(-0.5, 0.0);
Timer.delay(2.0);
chassis.drive(0.0, 0.0);
}
public void test() {
}
}
Code:
ant -f "C:\\Users\\NRHS Skynet\\Desktop\\New Folder\\RobotTemplate" deploy run
clean:
Deleting directory C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build
Created dir: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build
Created dir: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\classes
[crio-compile] ./src, C:/Users/NRHS Skynet/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/NRHS Skynet/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/NRHS Skynet/sunspotfrcsdk\lib\squawk.jar -> ./build/classes
Compiling 1 source file to C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\classes
compile:
preverify:
Created dir: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\preverify
Created dir: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\preverify.raw.util
[crio-preverify] ./build/classes, , C:/Users/NRHS Skynet/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/NRHS Skynet/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/NRHS Skynet/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify
Expanding: C:\Users\NRHS Skynet\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\preverify
Expanding: C:\Users\NRHS Skynet\sunspotfrcsdk\lib\networktables-crio.jar into C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\preverify
jar:
[crio-jar] ./build/preverify, ./resources -> ./build/app.jar
Building jar: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\app.jar
suite:
Created dir: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\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 388 classes and generated 4 files.
Expanding: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\app.jar into C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\suite
Moving 1 file to C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\suite
Moving 1 file to C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\suite
Moving 1 file to C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\build\suite
Deleting: C:\Users\NRHS Skynet\Desktop\New Folder\RobotTemplate\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) 64-Bit Server VM 24.45-b08
Target IP: 10.52.2.2
Network interfaces on host:
Realtek PCIe GBE Family Controller: address: 10.52.2.5 netmask: 255.255.255.0 <--- on robot's subnet
Intel(R) Centrino(R) Advanced-N 6230: address: 10.251.20.251 netmask: 255.255.255.254
Connecting FTP @10.52.2.2
[crio-deploy] ./build/suite/image.suite -> 10.52.2.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)
Waiting for cRIO to reboot (11s)
[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] task 0x18a70e8 (VISA Jungo Init Thread) deleted: errno=196709 (0x30065) status=-1073807360 (0xbfff0000)
[cRIO] * Loading nivissvc.out: nivissvc
[cRIO] * Loading nivision.out: nivision
[cRIO] task 0x1a15a40 (Service Locator Thread 5) deleted: errno=0 (0) status=0 (0)
[cRIO] NI-RIO Server 13.0 started successfully.
[cRIO] task 0x187f668 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x1a1ede8 (Service Locator Thread 6) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x1a1ede8 (Service Locator Thread 7) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x1a1ede8 (Service Locator Thread 8) deleted: errno=0 (0) status=0 (0)
[cRIO] task 0x1658320 (nisysapi-mDns) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading visa32.out: visa32
[cRIO] * Loading niserial.out: niserial
[cRIO] * Loading NiFpgaLv.out: NiFpgaLv
[cRIO] * Loading FRC_FPGA_ChipObject.out: FRC_FPGA_ChipObject
[cRIO] * Loading FRC_NetworkCommunication.out: 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 0x18773c8 (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] Default disabled() method running, consider providing your own
|
|
#26
|
||||||
|
||||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Quote:
Quote:
|
|
#27
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Yes the code is located in that filepath.
|
|
#28
|
||||
|
||||
|
Re: Help A Brotha Out. Error 44002 and 44004.
The tighter netmask 255.255.255.0 may help discern between the robot and the schools wifi setup and it definitely will work. But at competition it must open up to 255.0.0.0 to talk to the FMS.
|
|
#29
|
|||
|
|||
|
Re: Help A Brotha Out. Error 44002 and 44004.
Alright our problem has been solved. We just created a new project and copy and pasted the old code into it. I guess the filepath of the old project was messed up.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|