changed gimbal to chassis in system_statuses_node.py

This commit is contained in:
MatthewTaylor24
2018-01-13 19:02:13 -08:00
parent 1787304f6b
commit f07c2a1b6b
2 changed files with 7 additions and 7 deletions

View File

@@ -14,8 +14,8 @@
<file leaf-file-name="system_statuses_node.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/system_statuses_node.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="192">
<caret line="23" column="38" lean-forward="true" selection-start-line="23" selection-start-column="38" selection-end-line="23" selection-end-column="38" />
<state relative-caret-position="552">
<caret line="27" column="33" lean-forward="false" selection-start-line="27" selection-start-column="33" selection-end-line="27" selection-end-column="33" />
<folding />
</state>
</provider>
@@ -167,8 +167,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/system_statuses_node.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="192">
<caret line="23" column="38" lean-forward="true" selection-start-line="23" selection-start-column="38" selection-end-line="23" selection-end-column="38" />
<state relative-caret-position="552">
<caret line="27" column="33" lean-forward="false" selection-start-line="27" selection-start-column="33" selection-end-line="27" selection-end-column="33" />
<folding />
</state>
</provider>

View File

@@ -9,7 +9,7 @@ class SystemStatuses:
self.system_path_locations = [
'/dev/rover/camera_zed',
'/dev/rover/camera_undercarriage',
'/dev/rover/camera_gimbal',
'/dev/rover/camera_chassis',
'/dev/rover/camera_main_navigation'
]
@@ -25,8 +25,8 @@ class SystemStatuses:
self.msg.camera_zed = 1 if os.path.exists(self.system_path_locations[0]) else 0
# Check if camera_undercarriage is found
self.msg.camera_undercarriage = 1 if os.path.exists(self.system_path_locations[1]) else 0
# Check if camera_gimbal is found
self.msg.camera_gimbal = 1 if os.path.exists(self.system_path_locations[2]) else 0
# Check if camera_chassis is found
self.msg.camera_chassis = 1 if os.path.exists(self.system_path_locations[2]) else 0
# Check if camera_main_navigation is found
self.msg.camera_main_navigation = 1 if os.path.exists(self.system_path_locations[3]) else 0