Go to Post Please drill responsibly! - IKE [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-01-2016, 13:18
thomasmcdonald thomasmcdonald is offline
Registered User
FRC #2587
 
Join Date: Jan 2016
Location: Houston
Posts: 3
thomasmcdonald is an unknown quantity at this point
PWM Talon SR Problem

Whenever we try to enable the electrical board (roboRIO) using the driver station, we get the following error from the driver station console:
Code:
ERROR Unhandled exception: java.lang.NullPointerException at
[org.discobots.stronghold.subsystems.DriveTrainSubsystem.tankDriveUnramped(DriveTrainSubsystem.java:133),
org.discobots.stronghold.subsystems.DriveTrainSubsystem.tankDriveRamp(DriveTrainSubsystem.java:76), 
org.discobots.stronghold.commands.drive.TankDriveCommand.execute(TankDriveCommand.java:24), 
edu.wpi.first.wpilibj.command.Command.run(Command.java:240), 
edu.wpi.first.wpilibj.command.Scheduler.run(Scheduler.java:222), 
org.discobots.stronghold.Robot.teleopPeriodic(Robot.java:139), 
edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:143), 
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)] 
WARNING: Robots don't quit!
I have tried it with CAN and using the CANTalon class with TalonSRX motor controllers and the code works like a charm and it stays enabled. I am now trying to use the same code, but changing the ports to PWM ports and we are now using TalonSR motor controllers (Which do not have a class in the 2016 libraries). I have changed the motor controller types in the code to Jaguars, Victor, Talon, TalonSRX, and Victor SP, but I am still getting the same error as soon as I enable using the driver station. We also get the same error when there's not anything physically attached to the ports, but they are still referred to in the code.
When I comment out anything referring to the PWM motor controllers, I do not get an error.
Any suggestions on what the problem might be?
Thanks!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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