Skip to content

Commit 9d6302c

Browse files
author
lirmm
committed
buttons
1 parent 6aae6dc commit 9d6302c

31 files changed

+956
-925
lines changed

.directory

100644100755
File mode changed.

Command.o

100644100755
File mode changed.

CommandDownload.o

100644100755
File mode changed.

CommandMaster.o

100644100755
File mode changed.

CommandSdos.o

100644100755
File mode changed.

CommandUpload.o

100644100755
File mode changed.

DataTypeHandler.o

100644100755
File mode changed.

Epos3ReadWriteLib.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,22 @@ int Epos3ReadWriteLib::sendDownloadCommand(string positionStr, string regStr, st
148148

149149
return retval;
150150
}
151+
152+
void moveMotor( int newtargerPosition, int profileVelocity )
153+
{
154+
char temp[11];
155+
string pos;
156+
string newVel;
157+
158+
sprintf(temp,"%x",newtargerPosition);
159+
pos = "0x" + string(temp);
160+
161+
162+
sprintf(temp,"%x",profileVelocity);
163+
newVel = "0x" + string(temp);
164+
165+
sendDownloadCommand("0", "0x607A", "0", "uint32",pos);
166+
sendDownloadCommand("0", "0x6081", "0", "uint32",newVel);
167+
sendDownloadCommand("0", "0x6040", "0", "uint16","0x006f");
168+
sendDownloadCommand("0", "0x6040", "0", "uint16","0x007f");
169+
}

Epos3ReadWriteLib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ string skin;
4040
void initEPOS3();
4141
int sendUploadCommand(string, string, string, string);
4242
int sendDownloadCommand(string, string, string, string, string);
43+
void moveMotor( int, int );
4344

4445
};
4546
/*****************************************************************************/

Epos3ReadWriteLib.o

100644100755
File mode changed.

Espos3_Control_GUI

-218 KB
Binary file not shown.

Espos3_Control_GUI.pro

100644100755
File mode changed.

Espos3_Control_GUI.pro.user

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

Makefile

100644100755
Lines changed: 918 additions & 925 deletions
Large diffs are not rendered by default.

MasterDevice.o

100644100755
File mode changed.

NumberListParser.o

100644100755
File mode changed.

README.md

100644100755
File mode changed.

SdoCommand.o

100644100755
File mode changed.

epos3.cpp

100644100755
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,25 @@ void epos3::on_pushButton_9_clicked()
3131
epos3Lib.initEPOS3();
3232

3333
}
34+
void epos3::on_pushButton_3_clicked()
35+
{
36+
epos3Lib.sendDownloadCommand("0","0x6040","0","uint16","0x017f");
37+
}
38+
39+
void epos3::on_pushButton_5_clicked()
40+
{
41+
epos3Lib.sendDownloadCommand("0","0x6040","0","uint16","0x02");
42+
}
3443

44+
void epos3::on_pushButton_7_clicked()
45+
{
46+
epos3Lib.sendDownloadCommand("1","0x6040","0","uint16","0x017f");
47+
}
48+
49+
void epos3::on_pushButton_8_clicked()
50+
{
51+
epos3Lib.sendDownloadCommand("1","0x6040","0","uint16","0x02");
52+
}
3553
void epos3::on_pushButton_10_clicked()
3654
{
3755
int index,motor0, motor1;

epos3.h

100644100755
File mode changed.

epos3.o

-7.75 KB
Binary file not shown.

epos3.ui

100644100755
File mode changed.

jaymi-tool-v1.pro

100644100755
File mode changed.

main.cpp

100644100755
File mode changed.

main.h

100644100755
File mode changed.

main.o

100644100755
File mode changed.

moc_epos3.cpp

100644100755
File mode changed.

moc_epos3.o

100644100755
File mode changed.

too-temp3.pro

100644100755
File mode changed.

ui_epos3.h

100644100755
File mode changed.

0 commit comments

Comments
 (0)