Documentation
¶
Index ¶
- Constants
- Variables
- func ClearFaults(command *sparkmax.ClearFaultsRequest) (*sparkmax.ClearFaultsResponse, error)
- func Execute()
- func FactoryReset(command *sparkmax.FactoryResetRequest) (*sparkmax.RootResponse, error)
- func Firmware(command *sparkmax.FirmwareRequest) (*sparkmax.FirmwareResponse, error)
- func Float32FromBytes(bytes []byte) float32
- func Float32ToBytes(float float32) []byte
- func GetParameter(command *sparkmax.GetParameterRequest) (*sparkmax.ParameterResponse, error)
- func ListParameters(command *sparkmax.ParameterListRequest) (*sparkmax.ParameterListResponse, error)
- func SetParameter(command *sparkmax.SetParameterRequest) (*sparkmax.ParameterResponse, error)
- func SetVersion(version string)
- func StartNew() consoleProgress
- func Telemetry(command *sparkmax.TelemetryRequest) (*sparkmax.TelemetryResponse, error)
Constants ¶
View Source
const ( SPARKMAXDFUVID = 0x0483 SPARKMAXDFUPID = 0xdf11 )
Variables ¶
View Source
var Device string
Device is the COM port
View Source
var Persist bool
Persist mode keeps connection alive while application is running
View Source
var Remote bool
Remote mode sets up a TCP/IP server to stream the command line
View Source
var Verbosity uint
Verbosity 0 (default) don't show any messages, 1 show some, 2 show all
Functions ¶
func ClearFaults ¶ added in v1.0.131
func ClearFaults(command *sparkmax.ClearFaultsRequest) (*sparkmax.ClearFaultsResponse, error)
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func FactoryReset ¶ added in v1.1.46
func FactoryReset(command *sparkmax.FactoryResetRequest) (*sparkmax.RootResponse, error)
func Firmware ¶
func Firmware(command *sparkmax.FirmwareRequest) (*sparkmax.FirmwareResponse, error)
func Float32FromBytes ¶
func Float32ToBytes ¶
func GetParameter ¶
func GetParameter(command *sparkmax.GetParameterRequest) (*sparkmax.ParameterResponse, error)
func ListParameters ¶ added in v1.0.131
func ListParameters(command *sparkmax.ParameterListRequest) (*sparkmax.ParameterListResponse, error)
func SetParameter ¶
func SetParameter(command *sparkmax.SetParameterRequest) (*sparkmax.ParameterResponse, error)
func SetVersion ¶
func SetVersion(version string)
func Telemetry ¶ added in v1.1.46
func Telemetry(command *sparkmax.TelemetryRequest) (*sparkmax.TelemetryResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.