You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Makeblock-Libraries 7f7e4f078b010ccac735fd5386bea63ae0222b88, this Firmware does not compile.
It seems as if the names of some functions changed from Uppercase to lowercase.
You will get errors like:
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void encodersInit()':
encoders:7: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[0].GetIntNum(), isr_process_encoder1, RISING);
^
encoders:8: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[1].GetIntNum(), isr_process_encoder2, RISING);
^
encoders:9: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[2].GetIntNum(), isr_process_encoder3, RISING);
^
encoders:10: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[3].GetIntNum(), isr_process_encoder4, RISING);
^
encoders:13: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[0].SetPulsePos(0);
^
encoders:14: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[1].SetPulsePos(0);
^
encoders:15: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[2].SetPulsePos(0);
^
encoders:16: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[3].SetPulsePos(0);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void encodersUpdate()':
encoders:24: error: 'class MeEncoderOnBoard' has no member named 'update'
encoders[i].update();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void PWM_Calcu()':
encoders:40: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
speed1 = encoders[0].GetCurrentSpeed();
^
encoders:41: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
speed2 = encoders[1].GetCurrentSpeed();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder1()':
encoders:124: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[0].GetPortB()) == 0)
^
encoders:126: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[0].PulsePosMinus();
^
encoders:130: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[0].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder2()':
encoders:136: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[1].GetPortB()) == 0)
^
encoders:138: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[1].PulsePosMinus();
^
encoders:142: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[1].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder3()':
encoders:148: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[2].GetPortB()) == 0)
^
encoders:150: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[2].PulsePosMinus();
^
encoders:154: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[2].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder4()':
encoders:160: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[3].GetPortB()) == 0)
^
encoders:162: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[3].PulsePosMinus();
^
encoders:166: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[3].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void runModule(int)':
excute:43: error: no matching function for call to 'MeEncoderOnBoard::move(long int&, void (&)(int, int), int&)'
encoders[slot-1].move(distance,onEncoderMovingFinish,extId);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino:43:71: note: candidate is:
In file included from /Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeMegaPi.h:73:0,
from /Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/Firmware.ino:13:
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:481:8: note: void MeEncoderOnBoard::move(long int, float, int16_t, cb)
void move(long position,float speed = 100,int16_t extId=0,cb callback=NULL);
^
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:481:8: note: no known conversion for argument 2 from 'void(int, int)' to 'float'
excute:55: error: no matching function for call to 'MeEncoderOnBoard::moveTo(long int&, void (&)(int, int), int&)'
encoders[slot-1].moveTo(position,onEncoderMovingFinish,extId);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino:55:73: note: candidate is:
In file included from /Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeMegaPi.h:73:0,
from /Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/Firmware.ino:13:
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:503:8: note: void MeEncoderOnBoard::moveTo(long int, float, int16_t, cb)
void moveTo(long position,float speed = 100,int16_t extId=0,cb callback=NULL);
^
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:503:8: note: no known conversion for argument 2 from 'void(int, int)' to 'float'
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void readSensor(int)':
excute:596: error: 'class MeEncoderOnBoard' has no member named 'GetPulsePos'
sendLong(encoders[slot-1].GetPulsePos());
^
excute:601: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
sendFloat(encoders[slot-1].GetCurrentSpeed());
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void resetAll()':
excute:647: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[0].SetPulsePos(0);
^
excute:648: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[1].SetPulsePos(0);
^
excute:649: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[2].SetPulsePos(0);
^
excute:650: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[3].SetPulsePos(0);
^
exit status 1
'class MeEncoderOnBoard' has no member named 'GetIntNum'
The text was updated successfully, but these errors were encountered:
With Makeblock-Libraries 7f7e4f078b010ccac735fd5386bea63ae0222b88, this Firmware does not compile.
It seems as if the names of some functions changed from Uppercase to lowercase.
You will get errors like:
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void encodersInit()':
encoders:7: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[0].GetIntNum(), isr_process_encoder1, RISING);
^
encoders:8: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[1].GetIntNum(), isr_process_encoder2, RISING);
^
encoders:9: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[2].GetIntNum(), isr_process_encoder3, RISING);
^
encoders:10: error: 'class MeEncoderOnBoard' has no member named 'GetIntNum'
attachInterrupt(encoders[3].GetIntNum(), isr_process_encoder4, RISING);
^
encoders:13: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[0].SetPulsePos(0);
^
encoders:14: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[1].SetPulsePos(0);
^
encoders:15: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[2].SetPulsePos(0);
^
encoders:16: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[3].SetPulsePos(0);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void encodersUpdate()':
encoders:24: error: 'class MeEncoderOnBoard' has no member named 'update'
encoders[i].update();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void PWM_Calcu()':
encoders:40: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
speed1 = encoders[0].GetCurrentSpeed();
^
encoders:41: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
speed2 = encoders[1].GetCurrentSpeed();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder1()':
encoders:124: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[0].GetPortB()) == 0)
^
encoders:126: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[0].PulsePosMinus();
^
encoders:130: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[0].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder2()':
encoders:136: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[1].GetPortB()) == 0)
^
encoders:138: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[1].PulsePosMinus();
^
encoders:142: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[1].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder3()':
encoders:148: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[2].GetPortB()) == 0)
^
encoders:150: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[2].PulsePosMinus();
^
encoders:154: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[2].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/encoders.ino: In function 'void isr_process_encoder4()':
encoders:160: error: 'class MeEncoderOnBoard' has no member named 'GetPortB'
if(digitalRead(encoders[3].GetPortB()) == 0)
^
encoders:162: error: 'class MeEncoderOnBoard' has no member named 'PulsePosMinus'
encoders[3].PulsePosMinus();
^
encoders:166: error: 'class MeEncoderOnBoard' has no member named 'PulsePosPlus'
encoders[3].PulsePosPlus();
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void runModule(int)':
excute:43: error: no matching function for call to 'MeEncoderOnBoard::move(long int&, void (&)(int, int), int&)'
encoders[slot-1].move(distance,onEncoderMovingFinish,extId);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino:43:71: note: candidate is:
In file included from /Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeMegaPi.h:73:0,
from /Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/Firmware.ino:13:
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:481:8: note: void MeEncoderOnBoard::move(long int, float, int16_t, cb)
void move(long position,float speed = 100,int16_t extId=0,cb callback=NULL);
^
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:481:8: note: no known conversion for argument 2 from 'void(int, int)' to 'float'
excute:55: error: no matching function for call to 'MeEncoderOnBoard::moveTo(long int&, void (&)(int, int), int&)'
encoders[slot-1].moveTo(position,onEncoderMovingFinish,extId);
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino:55:73: note: candidate is:
In file included from /Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeMegaPi.h:73:0,
from /Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/Firmware.ino:13:
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:503:8: note: void MeEncoderOnBoard::moveTo(long int, float, int16_t, cb)
void moveTo(long position,float speed = 100,int16_t extId=0,cb callback=NULL);
^
/Users/renebohne/Documents/Arduino/libraries/makeblock/src/MeEncoderOnBoard.h:503:8: note: no known conversion for argument 2 from 'void(int, int)' to 'float'
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void readSensor(int)':
excute:596: error: 'class MeEncoderOnBoard' has no member named 'GetPulsePos'
sendLong(encoders[slot-1].GetPulsePos());
^
excute:601: error: 'class MeEncoderOnBoard' has no member named 'GetCurrentSpeed'
sendFloat(encoders[slot-1].GetCurrentSpeed());
^
/Users/renebohne/Downloads/FirmwareForMegaPi-master/Firmware/excute.ino: In function 'void resetAll()':
excute:647: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[0].SetPulsePos(0);
^
excute:648: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[1].SetPulsePos(0);
^
excute:649: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[2].SetPulsePos(0);
^
excute:650: error: 'class MeEncoderOnBoard' has no member named 'SetPulsePos'
encoders[3].SetPulsePos(0);
^
exit status 1
'class MeEncoderOnBoard' has no member named 'GetIntNum'
The text was updated successfully, but these errors were encountered: