Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
/ roboclaw Public archive

Library for the RoboClaws motor controller from Ion Motion Control written in Go

License

Notifications You must be signed in to change notification settings

CPRT/roboclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roboclaw

Library for the RoboClaws motor controller from Ion Motion Control written in Go.

This library was based on the Roboclaw 2x7A sample library for the Arduino found at http://www.basicmicro.com/downloads.

example

Initialize the roboclaw

	var robo *roboclaw.Roboclaw
	var err error

	robo, err = roboclaw.Init(&roboclaw.Config{Name: "/dev/ttyAMA0", Baud: 19200, Retries: 3})

Read the roboclaw version on a roboclaw assigned address 128

	var version string

	version, err = robo.ReadVersion(128)

Drive motor 1 forward at maximum duty cycle

	err = robo.DutyM1(128, 32767)

About

Library for the RoboClaws motor controller from Ion Motion Control written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages