mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
refactor: change startCommunication return type from bool to void
This commit is contained in:
@@ -238,7 +238,7 @@ void CKobuki::setSound(int noteinHz, int duration) {
|
|||||||
pocet = write(HCom, &message, 9);
|
pocet = write(HCom, &message, 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CKobuki::startCommunication(char *portname, bool CommandsEnabled,
|
void CKobuki::startCommunication(char *portname, bool CommandsEnabled,
|
||||||
void *userDataL) {
|
void *userDataL) {
|
||||||
if(connect(portname) != -1){
|
if(connect(portname) != -1){
|
||||||
enableCommands(CommandsEnabled);
|
enableCommands(CommandsEnabled);
|
||||||
|
@@ -60,7 +60,7 @@ public:
|
|||||||
|
|
||||||
long loop(void *user_data, TKobukiData &Kobuki_data);
|
long loop(void *user_data, TKobukiData &Kobuki_data);
|
||||||
|
|
||||||
bool startCommunication(char *portname,bool CommandsEnabled,void *userDataL);
|
void startCommunication(char *portname,bool CommandsEnabled,void *userDataL);
|
||||||
int measure(); //thread function, contains an infinite loop and reads data
|
int measure(); //thread function, contains an infinite loop and reads data
|
||||||
void setLed(int led1 = 0, int led2 = 0); //led1 green/red 2/1, //led2 green/red 2/1
|
void setLed(int led1 = 0, int led2 = 0); //led1 green/red 2/1, //led2 green/red 2/1
|
||||||
void setTranslationSpeed(int mmpersec);
|
void setTranslationSpeed(int mmpersec);
|
||||||
|
Reference in New Issue
Block a user