Draw Cargo Ship
Path Edit Tool
Change-Id: I6c5ebe371962044a4cb1fe4470b8386a588cf901
diff --git a/frc971/control_loops/python/path_edit.py b/frc971/control_loops/python/path_edit.py
index f11b47c..e59286f 100644
--- a/frc971/control_loops/python/path_edit.py
+++ b/frc971/control_loops/python/path_edit.py
@@ -345,9 +345,20 @@
cr.stroke()
+ def draw_cargo_ship(self, cr):
+ # BASE Constants
+ X_BASE = -450+mToPx(2.41568)
+ Y_BASE = -150+mToPx(4.129151)
+
+ cr.rectangle(X_BASE + mToPx(3.15912), Y_BASE - mToPx(0.72326),
+ mToPx(2.43205), mToPx(1.41605))
+
+ cr.stroke()
+
def draw_field_elements(self, cr):
self.draw_HAB(cr)
self.draw_rockets(cr)
+ self.draw_cargo_ship(cr)
def handle_draw(self, cr):
# print(self.new_point)