Skip to content

Commit

Permalink
add export of type of item in wiring file for CAN
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Feb 10, 2018
1 parent d61e43b commit 65d34cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file modified build/libs/RobotBuilder-all.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions src/main/java/robotbuilder/exporters/GenericExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ public Map<String, String> filterComponents(final String propertyName, RobotComp
mapping.put(component.getProperty(property).getValue().toString(), component.getSubsystem() + delimiter + component.getName() + delimiter2 + "Servo");
} else if (propertyName.equals("Channel (PWM)") && component.getBaseType().equals("Nidec Brushless")) {
mapping.put(component.getProperty(property).getValue().toString(), component.getSubsystem() + delimiter + component.getName() + delimiter2 + "Nidec Brushless");
} else if (propertyName.equals("CAN ID")) {
String type1 = component.getBase().toString();
mapping.put(component.getProperty(property).getValue().toString(), component.getSubsystem() + delimiter + component.getName() + delimiter2 + type1);
} else {
mapping.put(component.getProperty(property).getValue().toString(), component.getSubsystem() + delimiter + component.getName());
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/export/wiring/macros.vm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
<table><tr>
<th class="pound">ID</th>
<th>Subsystem</th>
<th>Device</th></tr>
<th>Device</th>
<th>Type</th></tr>
#to_rows($ports)
</table>
#end
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/export/wiring/wiring.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<style type="text/css" media="screen">
table {
text-align: left;
width: 400px;
width: 480px;

border-top: 2px solid black;
border-bottom: 2px solid black;
Expand Down

0 comments on commit 65d34cc

Please sign in to comment.