Add sigmoid to replace abs(x) in atan2(y, x) to keep it smooth on the x-axis
Signed-off-by: justinT21 <jjturcot@gmail.com>
Change-Id: Iff4891607ad77d82716a2825f03b4ee086f0eb9f
diff --git a/frc971/control_loops/swerve/BUILD b/frc971/control_loops/swerve/BUILD
index 5adef05..cbc4e66 100644
--- a/frc971/control_loops/swerve/BUILD
+++ b/frc971/control_loops/swerve/BUILD
@@ -265,3 +265,16 @@
"@pip//scipy",
],
)
+
+py_binary(
+ name = "smooth_function_graph",
+ srcs = [
+ "smooth_function_graph.py",
+ ],
+ deps = [
+ "@pip//matplotlib",
+ "@pip//numpy",
+ "@pip//pygobject",
+ "@pip//scipy",
+ ],
+)