Arduino problem Float slope

Hi again,
I’m finding the way for import an image so…
When I Download the file
CNC_Control_V1 I have this ( open the picture please)!
I need yours help !!!
if possible in simple english, I don’t speak well !
Tanks you so much
Sloog

Are you running on a mac?
Never seen this error in 2 years.
I would guess that it has to do with the installation of the Arduino IDE.
Can you copy the complete error message from the black window?
What Arduino IDE version are you using?

:wink: Double posting does not help :wink:

Edit: Welcome to the Forum!

I just tried the IDE 1.8.9 on macOSMojave and the v1.26 Firmware uploads without error.
https://www.arduino.cc/en/Main/Software

Use the download version, not the web one.

1 Like

Hi and a big tks,
yes but I’m on old iMac with snow leopard…
for the double post, I was not sure of where is the right place
IDE 1,0,5

In file included from Axis.cpp:19:
Maslow.h:35:37: error: utility/direct_pin_read.h: No such file or directory
In file included from Maslow.h:36,
from Axis.cpp:19:
Encoder.h:44:36: error: utility/interrupt_pins.h: No such file or directory
In file included from Maslow.h:33,
from Axis.cpp:19:
Motor.h:22: error: ISO C++ forbids initialization of member ‘slope’
Motor.h:22: error: making ‘slope’ static
Motor.h:22: error: ISO C++ forbids in-class initialization of non-const static member ‘slope’
Motor.h:23: error: ISO C++ forbids initialization of member ‘intercept’
Motor.h:23: error: making ‘intercept’ static
Motor.h:23: error: ISO C++ forbids in-class initialization of non-const static member ‘intercept’
Motor.h:26: error: ISO C++ forbids initialization of member ‘positiveBound’
Motor.h:26: error: making ‘positiveBound’ static
Motor.h:26: error: ISO C++ forbids in-class initialization of non-const static member ‘positiveBound’
Motor.h:27: error: ISO C++ forbids initialization of member ‘negativeBound’
Motor.h:27: error: making ‘negativeBound’ static
Motor.h:27: error: ISO C++ forbids in-class initialization of non-const static member ‘negativeBound’
Motor.h:47: error: ISO C++ forbids initialization of member ‘_attachedState’
Motor.h:47: error: making ‘_attachedState’ static
Motor.h:47: error: ISO C++ forbids in-class initialization of non-const static member ‘_attachedState’
Motor.h:49: error: ISO C++ forbids initialization of member ‘_lastSpeed’
Motor.h:49: error: making ‘_lastSpeed’ static
Motor.h:49: error: ISO C++ forbids in-class initialization of non-const static member ‘_lastSpeed’
In file included from Maslow.h:34,
from Axis.cpp:19:
PID_v1.h:18: error: ISO C++ forbids initialization of member ‘pOnE’
PID_v1.h:18: error: making ‘pOnE’ static
PID_v1.h:18: error: ISO C++ forbids in-class initialization of non-const static member ‘pOnE’
PID_v1.h:18: error: ISO C++ forbids initialization of member ‘pOnM’
PID_v1.h:18: error: making ‘pOnM’ static
PID_v1.h:18: error: ISO C++ forbids in-class initialization of non-const static member ‘pOnM’
In file included from Maslow.h:36,
from Axis.cpp:19:
Encoder.h:59: error: ISO C++ forbids declaration of ‘IO_REG_TYPE’ with no type
Encoder.h:59: error: expected ‘;’ before ‘’ token
Encoder.h:60: error: ISO C++ forbids declaration of ‘IO_REG_TYPE’ with no type
Encoder.h:60: error: expected ‘;’ before '
’ token
Encoder.h:61: error: ‘IO_REG_TYPE’ does not name a type
Encoder.h:62: error: ‘IO_REG_TYPE’ does not name a type
Encoder.h:157: error: ‘CORE_NUM_INTERRUPT’ was not declared in this scope
Encoder.h: In member function ‘void Encoder::setup(uint8_t, uint8_t)’:
Encoder.h:82: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_register’
Encoder.h:82: error: ‘PIN_TO_BASEREG’ was not declared in this scope
Encoder.h:83: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_bitmask’
Encoder.h:83: error: ‘PIN_TO_BITMASK’ was not declared in this scope
Encoder.h:84: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_register’
Encoder.h:85: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_bitmask’
Encoder.h:92: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_register’
Encoder.h:92: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_bitmask’
Encoder.h:92: error: ‘DIRECT_PIN_READ’ was not declared in this scope
Encoder.h:93: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_register’
Encoder.h:93: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_bitmask’
Encoder.h:93: error: ‘DIRECT_PIN_READ’ was not declared in this scope
Encoder.h: In static member function ‘static void Encoder::update(Encoder_internal_state_t*)’:
Encoder.h:297: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_register’
Encoder.h:297: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin1_bitmask’
Encoder.h:297: error: ‘DIRECT_PIN_READ’ was not declared in this scope
Encoder.h:298: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_register’
Encoder.h:298: error: ‘struct Encoder_internal_state_t’ has no member named ‘pin2_bitmask’
In file included from Maslow.h:37,
from Axis.cpp:19:
MotorGearboxEncoder.h: At global scope:
MotorGearboxEncoder.h:53: error: ISO C++ forbids initialization of member ‘_encoderStepsToRPMScaleFactor’
MotorGearboxEncoder.h:53: error: making ‘_encoderStepsToRPMScaleFactor’ static
MotorGearboxEncoder.h:53: error: ISO C++ forbids in-class initialization of non-const static member ‘_encoderStepsToRPMScaleFactor’
In file included from Maslow.h:38,
from Axis.cpp:19:
Axis.h:66: error: ISO C++ forbids initialization of member ‘_disableAxisForTesting’
Axis.h:66: error: making ‘_disableAxisForTesting’ static
Axis.h:66: error: ISO C++ forbids in-class initialization of non-const static member ‘_disableAxisForTesting’
In file included from Maslow.h:39,
from Axis.cpp:19:
Kinematics.h:40: error: ISO C++ forbids initialization of member ‘R’
Kinematics.h:40: error: making ‘R’ static
Kinematics.h:40: error: ISO C++ forbids in-class initialization of non-const static member ‘R’
Kinematics.h:51: error: ISO C++ forbids initialization of member ‘x’
Kinematics.h:51: error: making ‘x’ static
Kinematics.h:51: error: ISO C++ forbids in-class initialization of non-const static member ‘x’
Kinematics.h:52: error: ISO C++ forbids initialization of member ‘y’
Kinematics.h:52: error: making ‘y’ static
Kinematics.h:52: error: ISO C++ forbids in-class initialization of non-const static member ‘y’
Kinematics.h:60: error: ISO C++ forbids initialization of member ‘Phi’
Kinematics.h:60: error: making ‘Phi’ static
Kinematics.h:60: error: ISO C++ forbids in-class initialization of non-const static member ‘Phi’
Kinematics.h:66: error: ‘Kinematics::Theta’ cannot appear in a constant-expression
Kinematics.h:66: error: ‘Kinematics::Phi’ cannot appear in a constant-expression
Kinematics.h:66: error: ISO C++ forbids initialization of member ‘Psi1’
Kinematics.h:66: error: making ‘Psi1’ static
Kinematics.h:66: error: ISO C++ forbids in-class initialization of non-const static member ‘Psi1’
Kinematics.h:67: error: ‘Kinematics::Theta’ cannot appear in a constant-expression
Kinematics.h:67: error: ‘Kinematics::Phi’ cannot appear in a constant-expression
Kinematics.h:67: error: ISO C++ forbids initialization of member ‘Psi2’
Kinematics.h:67: error: making ‘Psi2’ static
Kinematics.h:67: error: ISO C++ forbids in-class initialization of non-const static member ‘Psi2’
In file included from Maslow.h:40,
from Axis.cpp:19:
RingBuffer.h:37: error: ISO C++ forbids initialization of member ‘_beginningOfString’
RingBuffer.h:37: error: making ‘_beginningOfString’ static
RingBuffer.h:37: error: ISO C++ forbids in-class initialization of non-const static member ‘_beginningOfString’
RingBuffer.h:38: error: ISO C++ forbids initialization of member ‘_endOfString’
RingBuffer.h:38: error: making ‘_endOfString’ static
RingBuffer.h:38: error: ISO C++ forbids in-class initialization of non-const static member ‘_endOfString’
Axis.cpp: In member function ‘String Axis::getPIDString()’:
Axis.cpp:145: error: ambiguous overload for ‘operator+’ in ‘PIDString + ((Axis)this)->Axis::_Kp’
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:122: note: candidates are: StringSumHelper& operator+(const StringSumHelper&, long unsigned int)
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:121: note: StringSumHelper& operator+(const StringSumHelper&, long int)
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:120: note: StringSumHelper& operator+(const StringSumHelper&, unsigned int)
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:119: note: StringSumHelper& operator+(const StringSumHelper&, int)
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:118: note: StringSumHelper& operator+(const StringSumHelper&, unsigned char)
/Applications/Arduino 3.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WString.h:117: note: StringSumHelper& operator+(const StringSumHelper&, char)

1 Like

I would guess it’s the old IDE.
For IDE 1.8.9 is says mountain-lion or higher. Is snow-leopard higher?

I have trying with differents IDE and allways the same thing

my os is “OSX 10,6,8”

For the IDE 1.8.9. you need at least 10.8

Yes, unfortunately…
I have check if the plugs are wells…I think it’s OK,

Always same problems with the olds mac …

I have the 1,0,5 version, do you think that is the best one for my OS ?

I’m afraid older IDE might not have the needed modules to compile the Firmware, but i’m not an expert.

OK,
tks for all,
I’m going to try the IDE 1,6…? and after, I have a PC with Windows 10, maybe it’s gonna be OK!!
It’s was better to use a used PC but in our world you must buy and buy again :frowning:

1 Like

Can’t you update to 10.8: “Mountain Lion”?

That is why i run linux on 10 year old hardware :wink:

NO : frowning_face:
I have check on the web, my machine is blocked just under :rage:

good idea :wink:

Check part 2: Maslow Firmware

Older versions of Arduino IDE have problems with libraries when compiling the firmware, so make sure you have the latest version.

I have DL the version 1,6 and now, it’s a new message, compilation error
I continue searching the latest version acceptable for my machine

44|690x139

Maybe there is a way to manually update the libraries :man_shrugging: