diff --git a/motiongen_pos.slx b/motiongen_pos.slx index ed53740..ae3bd53 100644 Binary files a/motiongen_pos.slx and b/motiongen_pos.slx differ diff --git a/motiongen_vel.slx b/motiongen_vel.slx index eb8b259..05e4b00 100644 Binary files a/motiongen_vel.slx and b/motiongen_vel.slx differ diff --git a/sfun_motiongen.tlc b/sfun_motiongen.tlc index 1e6d717..b8e3cb1 100644 --- a/sfun_motiongen.tlc +++ b/sfun_motiongen.tlc @@ -15,7 +15,7 @@ % % - % + % % % % @@ -44,7 +44,7 @@ %% start and every time an enabled subsystem is re-enabled. %% Reset the IWork flag to 1 when values need to be reinitialized. - % = 1; + % = 1; } %endfunction @@ -62,7 +62,7 @@ auto *IP = new ruckig::InputParameter( ndofs ); auto *OP = new ruckig::OutputParameter( ndofs ); - const char* control = %; + const char* control = "%"; if (strcmp(control,"POSITION") == 0){ IP->control_interface = ruckig::ControlInterface::Position; } @@ -73,7 +73,7 @@ IP->control_interface = ruckig::ControlInterface::Position; } - const char* sync = %; + const char* sync = "%"; if (strcmp(sync,"NO_SYNCHRONIZATION") == 0){ IP->synchronization = ruckig::Synchronization::None; } @@ -90,7 +90,7 @@ IP->synchronization = ruckig::Synchronization::Time; } - const char* duration = %; + const char* duration = "%"; if (strcmp(duration,"CONTINUOUS") == 0){ IP->duration_discretization = ruckig::DurationDiscretization::Continuous; } @@ -116,7 +116,7 @@ /* % Block: % */ { %% Initialize values if the IWork vector flag is true. - if (% == 1) { + if (% == 1) { const int_T ndofs = static_cast(%); for (int_T dof=0; dof < ndofs; dof++) { @@ -125,11 +125,11 @@ (%)[dof] = (%)[dof]; } - % = 0; + % = 0; } else { %% Retrieve C++ object from the pointers vector - auto *OP = static_cast *>(%); + auto *OP = static_cast *>(%); const int_T ndofs = static_cast(%); for (int_T dof=0; dof < ndofs; dof++)