![]() |
How do I upload code to the Robot with Java?
Hi everyone,
Our team has just realised something, we don't know how to upload code with Java! This is our first year with Java and we have Netbeans 6.9.1. Thanks in advance! |
Re: How do I upload code to the Robot with Java?
First question: have you reimaged the cRio to accept Java?
Assuming you have sorted that out it's pretty simple. You connect your computer to the cRio with a crossover cable, and then in Netbeans hit "Run". The actual routines to copy it over to the bot are handled by Netbeans. |
Re: How do I upload code to the Robot with Java?
Hi,
In the ideal world, the steps to download Java are: 1) Reimage the cRIO with the Java specific image. 2) Update Netbeans with the FRC plugins. 3) In Netbeans, in Tools>Options>Misc>FRC Configuration, update the Team Number. 4) Hit Run and cross your fingers :P I assume all your networking is up and running properly (i.e., you should be able to ping the cRIO). You can find more detailed information at How to Build and Load Programming in LabVIEW, C++, and Java Hope that helps! :) |
Re: How do I upload code to the Robot with Java?
Quote:
|
Re: How do I upload code to the Robot with Java?
Our team is having the same issue,
Code:
[cRIO] edu.wpi.first.wpilibj.util.AllocationException: PWM channel 3 on module 4 is already allocated |
Re: How do I upload code to the Robot with Java?
code plz?
|
Re: How do I upload code to the Robot with Java?
Quote:
Code:
new PWM(3); |
Re: How do I upload code to the Robot with Java?
Here are all of our declarations:
Code:
public Joystick leftStick = new Joystick(1); |
Re: How do I upload code to the Robot with Java?
Quote:
|
Re: How do I upload code to the Robot with Java?
Quote:
|
Re: How do I upload code to the Robot with Java?
kk, in your declarations most of that doesn't need to be public. Try:
Code:
Joystick leftStick = new Joystick(1);Code:
package edu.wpi.first.wpilibj.templates;Code:
RobotDrive driveRobot = new RobotDrive(1, 3, 2, 4);Code:
RobotDrive driveRobot = new RobotDrive(jagFrontLeft,jagBackLeft,jagFrontRight,jagBackRight); |
Re: How do I upload code to the Robot with Java?
Code:
public Joystick leftStick = new Joystick(1);Code:
Joystick leftStick = new Joystick(1); |
Re: How do I upload code to the Robot with Java?
Ahh, noob mistake. Haven't touched java in forevers. Thanks All.
|
| All times are GMT -5. The time now is 09:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi