myCobot icon indicating copy to clipboard operation
myCobot copied to clipboard

mycobot_24px.h EncodeRange error: Can't build examples Calibration, miniRoboFlow, myPalletizerFlow, MainControl

Open thandal opened this issue 3 years ago • 3 comments

For those four examples, I get the following error:

In file included from C:\Users\XXX\Documents\Arduino\libraries\MycobotBasic/MycobotLanguage.h:7:0, from C:\Users\XXX\Documents\Arduino\libraries\MyCobotBasic\examples\Calibration\Calibration.ino:3: C:\Users\XXX\Documents\Arduino\libraries\MycobotBasic/mycobot_24px.h:1467:7: error: 'EncodeRange' does not name a type const EncodeRange mycobot_24pxEncodeRange[] PROGMEM = {

thandal avatar Sep 17 '21 20:09 thandal

For this issue, pls check C:\Users\XXX\Documents\Arduino\libraries\M5Stack\src\utility/ln_eSPI_Setup.h to uncomment the last line "//#define USE_M5_FONT_CREATOR" For more details pls check FAQ in https://github.com/elephantrobotics/myCobot/blob/main/Arduino/README.md, hope it wll be helpful to you~

Yuzhiqi11 avatar Sep 18 '21 03:09 Yuzhiqi11

Thank you! I had seen that note, but somehow didn't associate it with this problem!

This lets me build Calibration.ino. But I still can't build miniFlow, myPalletizerFlow, or MainControl, which fails with the error: 'class SMSBL' has no member 'Feedback' -- which I think is related to https://github.com/elephantrobotics/myCobot/issues/24 -- I must not have quite the right version for the library :(

thandal avatar Sep 18 '21 12:09 thandal

I'm sorry that our Arduino library for SCServo temporarily is not open for public, but for the issue you mentioned, we update our code which may help you. Pls check https://github.com/elephantrobotics/myCobot/tree/main/Arduino/MyCobotBasic/examples/miniRoboFlow and https://github.com/elephantrobotics/myCobot/tree/main/Arduino/MyCobotBasic/examples/MyPalletizerRoboFlow.

Yuzhiqi11 avatar Sep 22 '21 11:09 Yuzhiqi11