Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static BowlerAbstractDevice pickConnectedDevice(@SuppressWarnings("rawtyp
}
}else{
Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Device not availible");
alert.setTitle("Device not available");
alert.setHeaderText("Connect a "+class1.getSimpleName());
alert.setContentText("A device of type "+class1.getSimpleName()+" is needed");
alert .initModality(Modality.APPLICATION_MODAL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class PluginManager {
public PluginManager(BowlerAbstractDevice dev){
this.dev = dev;
if(!dev.isAvailable())
throw new RuntimeException("Device is not reporting availible "+dev.getClass().getSimpleName());
throw new RuntimeException("Device is not reporting available "+dev.getClass().getSimpleName());
}

public static void addPlugin(DeviceSupportPluginMap newMap){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static void waitForUpdate() {
}

private static void initialize() {
com.neuronrobotics.sdk.common.Log.error("No splash screen availible!");
com.neuronrobotics.sdk.common.Log.error("No splash screen available!");

loadFirst = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ private static void getNextChannel(MobileBase base, LinkConfiguration confOfChan
}
}

throw new RuntimeException("No channels are availible on given devices");
throw new RuntimeException("No channels are available on given devices");
}

private static void searchForAllLinks(MobileBase base, HashMap<String, HashMap<Integer, Boolean>> deviceMap) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class SchedulerGui extends JPanel{
//private DyIO d = new DyIO();
private static final long serialVersionUID = -2532174391435417313L;
JPanel channelBar = new JPanel(new MigLayout());
private IntegerComboBox availibleChans = new IntegerComboBox();
private IntegerComboBox availableChans = new IntegerComboBox();
private IntegerComboBox usedChans = new IntegerComboBox();
private ArrayList< ServoOutputScheduleChannelUI> outputs = new ArrayList<>();
private File configFile=null;
Expand Down Expand Up @@ -72,15 +72,15 @@ private void rmChannel(int num) {
outputs.remove(s);
channelBar.remove(s);
usedChans.removeInteger(num);
availibleChans.addInteger(num);
availableChans.addInteger(num);
}
private void addServoChannel( ServoOutputScheduleChannel chan){
int selected = chan.getChannelNumber();
ServoOutputScheduleChannelUI sosc= new ServoOutputScheduleChannelUI(chan,cs);
cs.addISchedulerListener(sosc);
outputs.add(sosc);
channelBar.add(sosc,"wrap");
availibleChans.removeInteger(selected);
availableChans.removeInteger(selected);
usedChans.addInteger(selected);
}

Expand Down Expand Up @@ -135,7 +135,7 @@ public boolean setConnection(BowlerAbstractDevice connection) {
addChannel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try{
int selected = availibleChans.getSelectedInteger();
int selected = availableChans.getSelectedInteger();
addServoChannel(cs.addServoChannel(selected));

}catch (Exception ex){
Expand All @@ -144,10 +144,10 @@ public void actionPerformed(ActionEvent e) {
}
});
for(int i=0;i<24;i++){
availibleChans.addInteger(i);
availableChans.addInteger(i);
}
addBar.add(addChannel);
addBar.add(availibleChans);
addBar.add(availableChans);

JButton removeChannel = new JButton("Remove channel");
removeChannel.addActionListener(new ActionListener() {
Expand Down