support

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

README

This directory contains code not directly related to the RoboMaster SDK but that can be used to simplify the creation of interesting/useful programs in an easier way.

Documentation

Index

Constants

View Source
const AnyAppID = 0

AnyAppID is a special app ID that can be used to indicate that any app ID should be accepted when connecting to a Robot.

Variables

This section is empty.

Functions

func GenerateAppID

func GenerateAppID() (uint64, error)

GenerateAppID generates a random app ID suitable to be used for Robomaster applications.

func SimpleEncryptDecrypt

func SimpleEncryptDecrypt(data []byte)

SimpleEncryptDecrypt encrypts or decrypts a byte slice using a simple algorithm. In other words:

SimpleEncryptDecrypt(SimpleEncryptDecrypt(data)) == data

This is used, for example, for the broadcast message sent by the robot when trying to pair with an app.

Types

This section is empty.

Directories

Path Synopsis
dsp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL