Skip to content

sweep3092/roombacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roombacs

Roomba control library for C# / .NET Framework

Getting Started

1. Add namespace

using Roombacs;

2. Create instance

// Default (Default baud rate => 115200)
RoombaControl rc = new RoombaControl("COM3"); // specify the serial port roomba connected

// If you specify the baud rate, you can use constructor below instead of above
RoombaControl rs = new RoombaControl("COM3", 9600);

3. Initialize the Roomba

rc.Power(); // turn on the power of Roomba
rc.Start(); // prepare the Roomba to receive commands
rc.SetOIMode(OIMode.SAFE); // Set OI Mode of the Roomba

4. Send Actuator Commands

// Go ahead for five seconds and stop
rc.GoAhead(300); // you must specify the speed of Roomba in mm/s unit
System.Threading.Thread.Sleep(5000);
rc.Stop(); // stop the Roomba

About

roomba controller library for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages