Attempts to make it work

This commit is contained in:
Keenan D. Buckley
2020-02-11 15:15:31 -07:00
parent 83bde7ebe8
commit 630b99c250
4 changed files with 56 additions and 7 deletions
@@ -239,15 +239,16 @@ public class Drive extends SubsystemBase {
*/
m_rightFrontMotor.configAuxPIDPolarity(false, DriveConstants.DRIVE_TIMEOUT_MS);
m_orchestra.addInstrument(m_leftBackMotor);
m_orchestra.addInstrument(m_leftFrontMotor);
m_orchestra.addInstrument(m_rightBackMotor);
//m_orchestra.addInstrument(m_leftBackMotor);
//m_orchestra.addInstrument(m_leftFrontMotor);
//m_orchestra.addInstrument(m_rightBackMotor);
m_orchestra.addInstrument(m_rightFrontMotor);
File songsDir = new File(Filesystem.getDeployDirectory().getAbsolutePath() + "\\songs");
File songsDir = new File(Filesystem.getDeployDirectory().getAbsolutePath() + "/songs");
System.err.println(songsDir.getPath());
String[] songsStrings = songsDir.list();
for (String songString : songsStrings){
m_songChooser.addOption(songString, songsDir.getAbsolutePath() + "\\" + songString);
m_songChooser.addOption(songString, songsDir.getAbsolutePath() + "/" + songString);
}
Shuffleboard.getTab("Songs").add(m_songChooser);
}