Remove field drawing functions in Spline UI
Trying to centralize usages of mToPx and pxToM in path_edit
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: Id94d81e1a00439c18bbf9e0f1fee857bec87ef38
diff --git a/frc971/control_loops/python/points.py b/frc971/control_loops/python/points.py
index c22582e..d874306 100644
--- a/frc971/control_loops/python/points.py
+++ b/frc971/control_loops/python/points.py
@@ -70,7 +70,7 @@
def updates_for_mouse_move(self, index_of_edit, spline_edit, x, y, difs):
if index_of_edit > -1:
- self.splines[spline_edit][index_of_edit] = [pxToM(x), pxToM(y)]
+ self.splines[spline_edit][index_of_edit] = [x, y]
if index_of_edit == 5:
self.splines[spline_edit][
@@ -150,7 +150,7 @@
def add_point(self, x, y):
if (len(self.points) < 6):
- self.points.append([pxToM(x), pxToM(y)])
+ self.points.append([x, y])
if (len(self.points) == 6):
self.splines.append(np.array(self.points))
self.points = []