Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakkusakura/dobotsdk_dll_advanced
Support for muti dobots
https://github.com/jakkusakura/dobotsdk_dll_advanced
Last synced: about 6 hours ago
JSON representation
Support for muti dobots
- Host: GitHub
- URL: https://github.com/jakkusakura/dobotsdk_dll_advanced
- Owner: JakkuSakura
- Created: 2018-07-01T12:20:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T13:54:50.000Z (over 6 years ago)
- Last Synced: 2023-11-25T05:21:23.439Z (about 1 year ago)
- Language: C++
- Size: 5.84 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
I modified this
```cpp
// in CDobot.cpp as well as in CDobot.h
CDobot *CDobot::instance()
{
static CDobot *instance[64] = {0};
int dobotId = getDobotID();
if (instance[dobotId] == 0) {
instance[dobotId] = new CDobot();
}
return instance[dobotId];
}
static int currentId = 0;
int CDobot::getDobotID()
{
return currentId;
}
void CDobot::specifyDobotID(int id)
{
currentId = id;
}````
and here
```cpp
// in DobotDll.cpp as well as in DobotDll.h
int GetDobotID(void)
{
return CDobot::getDobotID();
}void SpecifyDobotID(int dobotId)
{
CDobot::specifyDobotID(dobotId);
}int DobotExec(void)
{
CDobot::instance()->exec();return 0;
}```