feat(cmd): averagePosition, command to run the entire scenario to switch to automatic base

This commit is contained in:
2025-06-11 12:15:13 +02:00
parent af3b3b40f3
commit 5a8f4301cb
3 changed files with 319 additions and 0 deletions

View File

@ -53,3 +53,13 @@ func OnBroadcast(ctx context.Context, client *Client) (chan Broadcast, error) {
return ch, nil
}
// OnMessageType listens for ReachView type of messages
func OnMessageType(ctx context.Context, client *Client, messageType string) (chan Broadcast, error) {
ch, err := OnMessage[Broadcast](ctx, client, messageType)
if err != nil {
return nil, errors.WithStack(err)
}
return ch, nil
}