robot arm demo team / Mbed 2 deprecated RobotArmDemo Featured

Dependencies:   AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL

Revision:
10:9b21566a5ddb
Parent:
8:d98e2dec0f40
Child:
13:ffeff9b5e513
--- a/ActionBuf.cpp	Thu Dec 31 20:02:58 2015 +0000
+++ b/ActionBuf.cpp	Wed Jan 06 00:58:41 2016 +0000
@@ -38,6 +38,15 @@
     Param = param;
 }
 
+ActionSequence::ActionSequence(SequenceAction aType, int parts, float vals[], int param)
+{
+    ActionType = aType;
+    GoalVals.clear();
+    for (int i = 0; i < parts; i++)
+        GoalVals.push_back(vals[i]);
+    Param = param;
+}
+
 void ActionSequence::SetGoal(vector<float>& vals)
 {
     GoalVals = vals;