-
Notifications
You must be signed in to change notification settings - Fork 2
/
FindHome.m
38 lines (38 loc) · 875 Bytes
/
FindHome.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function res = FindHome(handle, nodeID, type)
% This function perfom the homming procedure for a Epos4 Node
%
% Call it as,
%
% >> res = FindHome(handle, nodeID, type);
%
% Where:
%
% res is the value of the object
%
% handle is the number returned by OpenCommunication
%
% nodeid is the ID for EPOS 4 controller
%
% type is the home method, it should has one of the following values
%
% 1 -> for actual position
%
% 2 -> for home switch with negative speed
%
% 3 -> for home switch with negative speed and index
%
% 4 -> for home switch with positive speed
%
% 5 -> for home switch with positive speed and index
%
% 6 -> for home with current and negative speed
%
% 7 -> for home with current and negative speed and index
%
% 8 -> for home with current and positive speed
%
% 9 -> for home with current and positive speed and index
%
% Copyright E. Yime, 2015.
% Colombia
%