|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Java - Class extensions and exception errors (for commands)
Hey everyone,
Team 253 would much appropriate help for this issue. The whole team is waiting for programming (well... me) to get this fixed ASAP. First off, here is the code for reference https://github.com/MillsRoboticsTeam...e2017/commands So my team wanted to take the data of multiple sensors and use it in multiple different classes (commands). These other classes allow us to do various tasks with our robot by using the data from the SensorData class. In order to get the sensors - Example - public class SensorData extends Command { public class GearAutoCorrect extends SensorData { However, we are running into a snag. We get "WARNING! Robots don't quit" And an illegal exception error linking to drivetrain.java and tankdrive.java However, when we tried debugging the error and putting the SensorData and one of our classes (GearsAutoCorrect that takes that data into our last year's code, it throws an error at the GearsAutoCorrect class (right at the super() ![]() Particularly, I believe its an inheritance problem with the superclass or.. ... me completely misunderstanding this concept of FRC java. Please, Any advice helps! We need this issue fixed ASAP to test out our robot this weekend! |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|