go_away

Author Topic: iRobot Create serial communication control working code C  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

Offline EvilDylan42Topic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
iRobot Create serial communication control working code C
« on: June 25, 2014, 02:20:10 AM »
Hello world,

I recently had a university project where I worked on the iRobot Create and the thing that frustrated me was that I couldn't find any proper working C/C++ code showing how to interface with and control it via serial. So here's a little snippet of the project that you should just be able to plug into Visual Studio 2010/2012 and run right away. I've included a few simple functions (drive, getAngle) to show it working but I am fairly certain I improved them/fixed some problems for the final build so I'd encourage playing around with them.

Don't forget to find out which COM port you've plugged the iRobot into and change it in the code. I probably could have automated this but hey, you're getting it for free - stop complaining.

Feel free to use this in any project outside of commercial use. I accept no liability if you somehow manage to hurt yourself or break the tank that is the iRobot etc etc.

 


Get Your Ad Here

data_list