Skip to content

Commit

Permalink
Adding multiturn features, removing brushless drive soft limit, FindC…
Browse files Browse the repository at this point in the history
…om more verbose
  • Loading branch information
iq-matt committed Nov 6, 2020
1 parent 4542919 commit 777f8ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 1 addition & 3 deletions iq/src/clients/brushless_drive.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
{"type_idn":50, "param":"motor_redline_start", "param_idn": 38, "format":"f", "unit": "rad/s" },
{"type_idn":50, "param":"motor_redline_end", "param_idn": 39, "format":"f", "unit": "rad/s" },
{"type_idn":50, "param":"motor_l", "param_idn": 40, "format":"f", "unit": "H" },
{"type_idn":50, "param":"derate", "param_idn": 41, "format":"i", "unit": "PU fix16" },
{"type_idn":50, "param":"i_soft_start", "param_idn": 42, "format":"f", "unit": "A" },
{"type_idn":50, "param":"i_soft_end", "param_idn": 43, "format":"f", "unit": "A" }
{"type_idn":50, "param":"derate", "param_idn": 41, "format":"i", "unit": "PU fix16" }

]
4 changes: 3 additions & 1 deletion iq/src/clients/multi_turn_angle_control.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
{"type_idn":59, "param":"trajectory_duration", "param_idn": 22,"format":"f", "unit": "s" },
{"type_idn":59, "param":"trajectory_linear_displacement", "param_idn": 23,"format":"f", "unit": "m" },
{"type_idn":59, "param":"trajectory_linear_velocity", "param_idn": 24,"format":"f", "unit": "m/s" },
{"type_idn":59, "param":"trajectory_linear_acceleration", "param_idn": 25,"format":"f", "unit": "m/s^2" }
{"type_idn":59, "param":"trajectory_linear_acceleration", "param_idn": 25,"format":"f", "unit": "m/s^2" },
{"type_idn":59, "param":"trajectory_average_speed", "param_idn": 26,"format":"f", "unit": "rad/s" },
{"type_idn":59, "param":"trajectory_queue_mode", "param_idn": 27,"format":"b", "unit": "" }

]
8 changes: 8 additions & 0 deletions iq/src/communication/FindCom.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

% Sets up a com
id = p.Results.id;

com = [];

%% Find/make com
coms = seriallist;
Expand All @@ -48,14 +50,20 @@
if(id == id_in)
disp(['Using MessageInterface on ', coms{i}]);
break;
else
disp(['No response on ' coms{i}]);
end
elseif(~isempty(id_in))
disp(['Using MessageInterface on ', coms{i}]);
break;
else
disp(['No response on ' coms{i}]);
end
catch ME
if (~strcmp(ME.identifier, 'MATLAB:serial:fopen:opfailed'))
rethrow(ME);
else
disp(['Could not open ' coms{i}]);
end
end
end
Expand Down

0 comments on commit 777f8ee

Please sign in to comment.