Reinbert / ros_diffdrive_robot

Arduino code to control a differential drive robot via ROS Twist messages using a NodeMcu or ESP8266
MIT License
38 stars 12 forks source link

Compilation error: 'PWMRANGE' was not declared in this scope #6

Open kghodstinat opened 10 months ago

kghodstinat commented 10 months ago

I get this Error when I upload the code to ESP8266: Compilation error: 'PWMRANGE' was not declared in this scope

is the defined in .h files, or should we define it?

Reinbert commented 10 months ago

Hi @kghodstinat!

As stated in the code // The max amount is defined by PWMRANGE in Arduino.h the definition should be in Arduino.h. Maybe you need to include this file yourself, as Arduino may have changed the header files which are included automatically.

Hope that helps.

Cheers, Reini

Reinbert commented 9 months ago

@kghodstinat According to this commit, PWMRANGE is no longer defined for ESP* Arduino devices. I'll change it, when I have the time.

kghodstinat commented 9 months ago

@Reinbert I gave it the value of 1023, and it was working fine.