View Single Post
  #6   Spotlight this post!  
Unread 04-02-2014, 19:05
wolfspell12 wolfspell12 is offline
Registered User
FRC #3244
 
Join Date: Jan 2014
Location: Minnesota
Posts: 16
wolfspell12 is an unknown quantity at this point
Re: Code for Can jaguars.

Thank you for the help so far. I left the topic open but unattended for a while because I anticipated more potential problems. We have a problem right now.

While we were successful with firmware updates, (Hardware Version 2, Firmware Version 107) the Jags refuse to set to anything other than 1 for CAN ID. If you try and assign something else, then it just defaults or reverts back to 1.

If anyone has any clue, that would be helpful.

EDIT: While unrelated to Jaguar problems, an additional problem has popped up in our Command-Based robot. Robot Builder's autogenerated code:
Code:
 
// RobotBuilder Version: 1.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.
package org.usfirst.frc3244.RobotTest.subsystems;
import org.usfirst.frc3244.RobotTest.RobotMap;
import org.usfirst.frc3244.RobotTest.commands.*;
import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
 *
 */
public class Compressor extends Subsystem {
    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    Compressor compressor1 = RobotMap.compressorCompressor1;
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    public void initDefaultCommand() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
        setDefaultCommand(new compressorStart());
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
causes netbeans to display an error message at line 20: "incompatible types: edu.wpi.first.wpilibj.Compressor cannot be converted to: org.usfirst.frc3244.RobotTest.subsystems.Compresso r". The RobotDrive has the same problem.

Last edited by wolfspell12 : 04-02-2014 at 21:17.
Reply With Quote