Hi,
I want to use a class (SonarSensor) within another class (MovementController) but when declaring the object of class SonarSensor within MovementController.h I keep getting an error:
error: expected identifier before numeric constant
SonarSensor sonar(10,11);
^
error: expected ',' or '...' before numeric constant
exit status 1
Error compiling for board ATmega128.
Could you kindly help by pointing me to what I am doing wrong?
My code is attached.
MovementController.cpp (105 Bytes)
MovementController.h (235 Bytes)
SonarSensor.h (352 Bytes)
SonarSensor.cpp (1.13 KB)