pi side servo stuff

This commit is contained in:
legop3
2025-11-17 18:18:46 -05:00
parent ab15ce7e17
commit 9b552fb857
10 changed files with 309 additions and 11 deletions
+7
View File
@@ -22,6 +22,7 @@ type inboundMessage struct {
Raw string `json:"raw,omitempty"`
SensorStream *sensorStreamPayload `json:"sensorStream,omitempty"`
Media *mediaCommand `json:"media,omitempty"`
Servo *servoPayload `json:"servo,omitempty"`
}
type driveDirectPayload struct {
@@ -43,6 +44,12 @@ type mediaCommand struct {
Action string `json:"action"`
}
type servoPayload struct {
Angle *float64 `json:"angle,omitempty"`
Nudge *float64 `json:"nudge,omitempty"`
PulseUs *int `json:"pulseUs,omitempty"`
}
type ackMessage struct {
Type string `json:"type"`
ID string `json:"id"`