{"id":18494796,"url":"https://github.com/johnelliott/go-sbus","last_synced_at":"2026-05-01T19:32:26.600Z","repository":{"id":57554984,"uuid":"279157266","full_name":"johnelliott/go-sbus","owner":"johnelliott","description":"SBUS digital servo protocol for Go","archived":false,"fork":false,"pushed_at":"2020-08-25T01:12:11.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T16:42:05.335Z","etag":null,"topics":["blackmagicdesign","drone","futaba","quadcopter","radio-control","rc","robotics","sbus"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnelliott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-12T22:17:50.000Z","updated_at":"2020-09-11T01:26:36.000Z","dependencies_parsed_at":"2022-09-26T18:51:31.930Z","dependency_job_id":null,"html_url":"https://github.com/johnelliott/go-sbus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelliott%2Fgo-sbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelliott%2Fgo-sbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelliott%2Fgo-sbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnelliott%2Fgo-sbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnelliott","download_url":"https://codeload.github.com/johnelliott/go-sbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239210249,"owners_count":19600500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blackmagicdesign","drone","futaba","quadcopter","radio-control","rc","robotics","sbus"],"created_at":"2024-11-06T13:22:14.312Z","updated_at":"2026-05-01T19:32:21.577Z","avatar_url":"https://github.com/johnelliott.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nA Go implementation of the Futaba S.Bus protocol, AKA SBUS.\n\nPackage sbus offers marshalling (serialization) and unmarshalling of the Futaba S.Bus digital servo serial protocol\n\n[![GoDoc](https://godoc.org/github.com/johnelliott/go-sbus?status.svg)](https://godoc.org/github.com/johnelliott/go-sbus)\n\n# SBUS Protocol\nThe protocol is used for controlling digital [servos](https://en.wikipedia.org/wiki/Servo_\\(radio_control\\)) for building hobby projects, radio-controlled airplanes, [cameras](https://www.blackmagicdesign.com/products/blackmagicmicrostudiocamera4k/customization), robots, quadcopters, and drones.\n\n# Examples\n\n```go\nExampleFrame() {\n\t// Create Frame with some data\n\tFrame := Frame{\n\t\tCh: Channels{\n\t\t\t0x000, // Minumum channel value?\n\t\t\t0x000,\n\t\t\t0x7ff, // Maxiumum channel value\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t\t0x400, // 0% channel value\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t\t0x720, // 100% positive channel value\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t\t0x0ff, // -100% channel value?\n\t\t\t0x000,\n\t\t\t0x000,\n\t\t},\n\t}\n\n\t// Update Frame data\n\tFrame.Flags = Flags{Ch17: true, Failsafe: true}\n\n\t// Marshal a Frame\n\tfmt.Printf(\"%b\\n\", Frame.Marshal())\n\t// Output: [1111 0 0 11000000 11111111 1 0 0 0 0 0 10000000 0 0 0 11001000 1 0 10000000 1111111 0 0 0 10010000 0]\n}\n```\n\n```go\nfunc ExampleUnmarshalFrame() {\n\t// Create data\n\tdata := [25]byte{0xf, 0xff, 0x7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10, 0}\n\n\tframe, err := UnmarshalFrame(data)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t// Marshal a Frame\n\tfmt.Println(frame)\n\t// Output: {[2047 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] {false false false true}}\n}\n```\n\n# Suggested reading\nSee [this link dump](https://gist.github.com/johnelliott/3eca91e13afa354f6687de698e06ccc6) for more.\n\nIf Go isn't the right language, there are many open-source implementations of the protocol in C++ and for Arduino: \u003chttps://duckduckgo.com/?q=(parse+OR+decode)+SBUS]\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnelliott%2Fgo-sbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnelliott%2Fgo-sbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnelliott%2Fgo-sbus/lists"}