Skip to content
Snippets Groups Projects
Commit 480bf988 authored by odri's avatar odri
Browse files

Add two new velocity profiles to perform tests

parent e6ecb42b
No related branches found
No related tags found
No related merge requests found
Pipeline #16626 failed
......@@ -259,6 +259,20 @@ void Joystick::update_v_ref_predefined(int k, int velID) {
if (k == 0) {
MatrixN t_switch;
switch (velID) {
case 7:
t_switch = MatrixN::Zero(1, 9);
t_switch << 0, 1, 3, 4, 6, 7, 9, 10, 11;
v_switch = MatrixN::Zero(6, 9);
v_switch.row(0) << 0.0, 0.25, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.0;
v_switch.row(5) << 0.0, 0.8, -0.8, -0.8, 0.8, 0.8, -0.8, 0.0, 0.0;
break;
case 8:
t_switch = MatrixN::Zero(1, 9);
t_switch << 0, 1, 3, 4, 6, 7, 9, 10, 11;
v_switch = MatrixN::Zero(6, 9);
v_switch.row(0) << 0.0, 0.4, 0.8, 0.8, 0.4, 0.0, 0.0, 0.0, 0.0;
v_switch.row(5) << 0.0, 0.8, -1.2, 0.8, 0.0, 0.0, 0.0, 0.0, 0.0;
break;
case 10:
t_switch = MatrixN::Zero(1, 7);
t_switch << 0, 2, 4, 6, 8, 10, 15;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment