Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Baudrate and id arduino sketch does not compile #1

Open
sriranjanr opened this issue Aug 26, 2015 · 1 comment
Open

Baudrate and id arduino sketch does not compile #1

sriranjanr opened this issue Aug 26, 2015 · 1 comment

Comments

@sriranjanr
Copy link

I get this error when I try to compile the baud rate and ID sketch
Arduino: 1.6.5 (Windows 8), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Buadrate_and_ID_setup.ino: In function 'void setup()':
Buadrate_and_ID_setup:40: error: no matching function for call to 'DynamixelClass::begin(long int&, int)'
Buadrate_and_ID_setup.ino:40:53: note: candidates are:
In file included from Buadrate_and_ID_setup.ino:23:0:
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: void DynamixelClass::begin(long int)
void begin(long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: candidate expects 1 argument, 2 provided
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: void DynamixelClass::begin(HardwareSerial&, long int)
void begin(HardwareSerial&, long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: no known conversion for argument 1 from 'long int' to 'HardwareSerial&'
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: void DynamixelClass::begin(Stream&)
void begin(Stream&);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: candidate expects 1 argument, 2 provided
Buadrate_and_ID_setup:50: error: no matching function for call to 'DynamixelClass::begin(long int, int)'
Buadrate_and_ID_setup.ino:50:40: note: candidates are:
In file included from Buadrate_and_ID_setup.ino:23:0:
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: void DynamixelClass::begin(long int)
void begin(long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: candidate expects 1 argument, 2 provided
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: void DynamixelClass::begin(HardwareSerial&, long int)
void begin(HardwareSerial&, long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: no known conversion for argument 1 from 'long int' to 'HardwareSerial&'
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: void DynamixelClass::begin(Stream&)
void begin(Stream&);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: candidate expects 1 argument, 2 provided
Buadrate_and_ID_setup:58: error: no matching function for call to 'DynamixelClass::begin(long int, int)'
Buadrate_and_ID_setup.ino:58:54: note: candidates are:
In file included from Buadrate_and_ID_setup.ino:23:0:
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: void DynamixelClass::begin(long int)
void begin(long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:160:10: note: candidate expects 1 argument, 2 provided
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: void DynamixelClass::begin(HardwareSerial&, long int)
void begin(HardwareSerial&, long);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:161:10: note: no known conversion for argument 1 from 'long int' to 'HardwareSerial&'
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: void DynamixelClass::begin(Stream&)
void begin(Stream&);
^
C:\Users\ranjan-pc\Documents\Arduino\libraries\Dynamixel_Serial-master/Dynamixel_Serial.h:162:10: note: candidate expects 1 argument, 2 provided
no matching function for call to 'DynamixelClass::begin(long int&, int)'

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

@JunHyeongJeon
Copy link

I think there is no matching function, If you delete one of the parameter in function , you can fix
Dynamixel.begin(Baudrate_BPS, SERVO_ControlPin); ->
Dynamixel.begin(Baudrate_BPS);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants