Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Model = resource.ModelNamespace("erh").WithFamily("base").WithModel("boat")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Motors []MotorConfig LengthMM float64 `json:"length_mm"` WidthMM float64 `json:"width_mm"` MovementSensor string `json:"movement_sensor"` }
func (*Config) ComputePower ¶
returns an array of power for each motors forwardPercent: -1 -> 1 percent of power in which you want to move laterally
note only x & y are relevant. y is forward back, x is lateral
angularPercent: -1 -> 1 percent of power you want applied to move angularly
note only z is relevant here
func (*Config) ComputePowerOutput ¶
func (*Config) ComputePowerOutputAsMatrix ¶
Click to show internal directories.
Click to hide internal directories.