Forum: Programming
07-07-2016, 11:04
|
|
Replies: 13
Views: 1,020
Re: What is wrong with my Vision to Gyro code?!
You indicated that your PID loop would rotate the robot to 125 degrees instead of the target of -56 degrees. Given that the robot then oscillates around 125 degrees, this sounds like a condition...
|
Forum: Java
01-07-2016, 12:25
|
|
Replies: 1
Views: 449
Re: Need help loading Axis Camera feed in Java
We have some Java code available on github that provides some examples of opening a video feed using the OpenCV methods.
The project can be found at:
https://github.com/frc868/2016-Vision
In...
|
Forum: Java
18-04-2016, 12:53
|
|
Replies: 7
Views: 872
Re: JAVA in FRC and FTC
The WPI lib group has provided some excellent step by step instructions (with screen shots), demonstrating how to get Eclipse installed and configured to enable programming the roboRIO in Java....
|
Forum: Technical Discussion
08-04-2016, 07:51
|
|
Replies: 1
Views: 596
Re: I2C IMU Java question
We have not used that physical packaging. However, it looks like your unit contains an ITG-3200 gyro. We did connect an ITG-3200 gyro directly to our roboRIO in 2015. The following link it to the...
|
Forum: Java
24-03-2016, 12:43
|
|
Replies: 1
Views: 432
Re: Command to turn to angle
It looks like your command enables a PID controller to perform the turn. This is OK (we do this as well). However, I don't see where you turn the PID controller off (disable it) in your command's...
|
Forum: General Forum
22-03-2016, 13:06
|
|
Replies: 11
Views: 1,822
|
Forum: Java
05-03-2016, 19:59
|
|
Replies: 3
Views: 629
|
Forum: Java
05-03-2016, 07:31
|
|
Replies: 13
Views: 1,359
Re: WPILIB Camera Code Crashing JVM
Not sure if this is related or not to your issue, but we had a problem with exhausting memory when grabbing images that would cause the robot code to crash and burn after running for a certain time...
|
Forum: Java
04-03-2016, 06:03
|
|
Replies: 2
Views: 436
Re: Lift Mechanism - Victor Coding
Performing a timed task depends a lot on which framework you are using for your Robot code and whether you are doing it in an autonomous state where nothing else needs to be done or a teleop state...
|
Forum: Java
01-03-2016, 09:09
|
|
Replies: 1
Views: 617
Re: WPILib PIDController Question
It's a bit difficult to tell what issues you are having without seeing all of the code (in particular I could not tell how you were reading the sensor and determining the current angle), but here are...
|
Forum: Java
01-03-2016, 06:12
|
|
Replies: 9
Views: 1,092
Re: Network tables has already been initialized
The demo program I included was for a stand alone Java application (it runs outside of the Robot code and outside of the SmartDashboard).
It sounds like you are creating a SmartDashboard extension...
|
Forum: Java
25-02-2016, 16:58
|
|
Replies: 6
Views: 682
Re: Autonomous Timer Issue
I did not see the source for your DriveForward command. I'm guessing it should look something like the following:
public class DriveForward extends Command {
private double timeToRun;
public...
|
Forum: Java
24-02-2016, 06:13
|
|
Replies: 3
Views: 411
Re: LimitSwitches
The following WPIlib document provides a nice example of setting up an autonomous chooser:...
|
Forum: Java
23-02-2016, 05:22
|
|
Replies: 2
Views: 441
Re: ADIS16448 reading y values
I don't have any experience working with this sensor (my disclaimer), however in looking at the source, I did notice two things to check:
Did you connect your sensor to the SPI pins on the...
|
Forum: Java
23-02-2016, 05:03
|
|
Replies: 2
Views: 343
Re: Pneumatics not working
Try adding the following line to your robotInit() code after your shooter has been constructed:
LiveWindow.addActuator("Shooter", "Solenoid", shooter);
Deploy your program and put the driver...
|
Forum: Java
23-02-2016, 04:50
|
|
Replies: 2
Views: 537
|
Forum: Java
22-02-2016, 11:09
|
|
Replies: 4
Views: 447
Re: Driver Station long error
The stack trace (error output) indicates that you have a problem at line 46 in your Robot.java code.
The error message indicates that you tried to use the same PWM port in the construction of more...
|
Forum: Java
22-02-2016, 10:36
|
|
Replies: 5
Views: 536
Re: Gyro Error Message
Can you try moving it to port 0 or 1?
I don't think you can connect an AnalogGyro to ports other than 0 or 1 on the roboRIO. See:...
|
Forum: Java
22-02-2016, 09:22
|
|
Replies: 1
Views: 540
Re: PID Speed control with encoders
Not sure if you are still fighting with this issue or not, but here are some things we have found useful when setting up speed/rate control PIDs:
1. Use the SmartDashboard to display the PID control...
|
Forum: Java
22-02-2016, 08:53
|
|
Replies: 3
Views: 481
Re: Arduino Ethernet with roboRIO
I didn't actually write the code on the LED side (we have a lot of kids on the team and gave that task to a group of them).
However, I'm pretty sure the following code fragment demonstrates how to...
|
Forum: Java
21-02-2016, 18:45
|
|
Replies: 3
Views: 380
Re: Servo Help
Try adding the following code to your Robot.java file in the robotInit() method (change the value of PWM_SERVO to match the PWM port you used for your servo):
// Set this to the PWM port...
|
Forum: Java
21-02-2016, 09:20
|
|
Replies: 3
Views: 481
Re: Arduino Ethernet with roboRIO
We don't have any experience using a Ethernet interface on an Arduino for command and control. However, we are using a Arduino this year to control LEDs as well. Our implementation is fairly simple....
|
Forum: Java
19-02-2016, 14:22
|
|
Replies: 1
Views: 336
Re: Encoders
The first step is to wire up your encoders and make sure that you can access the information they provide in your code.
The following code snippet provides an example of how to construct an...
|
Forum: Java
19-02-2016, 04:42
|
|
Replies: 3
Views: 541
Re: Gyro Value to Motor-Need Help
It looks to me that you are in the process of creating a command that will rotate you robot a fixed amount and then stop and that you want to set the power used for the turn based on how far away you...
|
Forum: Java
18-02-2016, 16:46
|
|
Replies: 9
Views: 1,092
Re: Network tables has already been initialized
Here is an stand alone example program I have been using (run as a Java application, not as a Robot program) that connects to our network tables, monitors and then clears the "SmartDashboard"...
|