Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: shared/AutomaticMovement/AutomaticMovement.cpp
- Revision:
- 0:ee7e9405e1c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shared/AutomaticMovement/AutomaticMovement.cpp Wed Apr 14 07:26:19 2021 +0000
@@ -0,0 +1,16 @@
+#include "AutomaticMovement.h"
+
+AutomaticMovement::AutomaticMovement(Movement *movement)
+:_movement(movement)
+{}
+
+Eigen::Vector3d AutomaticMovement::move_automatic(Eigen::Vector3d target_position, Eigen::Vector3d current_position)
+{
+ set_target_position(target_position);
+ return move_automatic(current_position);
+}
+
+void AutomaticMovement::set_target_position(Eigen::Vector3d target_position)
+{
+ _target_position = target_position;
+}