Add support for early model Roomba 400s and other robots using the original SCI protocol.

This commit is contained in:
Ben Wolsieffer 2016-07-13 21:50:32 -04:00
parent c68a308c71
commit 618956e14c
18 changed files with 675 additions and 307 deletions

View file

@ -3,7 +3,7 @@
int main(int argc, char** argv) {
std::string port = "/dev/ttyUSB0";
int baud = 115200;
create::RobotModel model = create::CREATE_2;
create::RobotModel model = create::RobotModel::CREATE_2;
create::Create* robot = new create::Create(model);

View file

@ -5,10 +5,10 @@ create::Create* robot;
int main(int argc, char** argv) {
std::string port = "/dev/ttyUSB0";
int baud = 115200;
create::RobotModel model = create::CREATE_2;
create::RobotModel model = create::RobotModel::CREATE_2;
if (argc > 1 && std::string(argv[1]) == "create1") {
model = create::CREATE_1;
model = create::RobotModel::CREATE_1;
baud = 57600;
std::cout << "1st generation Create selected" << std::endl;
}

View file

@ -5,10 +5,10 @@ create::Create* robot;
int main(int argc, char** argv) {
std::string port = "/dev/ttyUSB0";
int baud = 115200;
create::RobotModel model = create::CREATE_2;
create::RobotModel model = create::RobotModel::CREATE_2;
if (argc > 1 && std::string(argv[1]) == "create1") {
model = create::CREATE_1;
model = create::RobotModel::CREATE_1;
baud = 57600;
std::cout << "1st generation Create selected" << std::endl;
}