wip modem/tests

This commit is contained in:
2025-06-10 16:23:01 +02:00
parent ecf5fb46a0
commit 49a4642db2
10 changed files with 207 additions and 57 deletions

View File

@ -6,6 +6,7 @@ type SetBaseOptions struct {
Latitude *float64
Longitude *float64
Height *float64
Accumulation *int
}
type SetBaseOptionFunc func(opts *SetBaseOptions)
@ -47,3 +48,9 @@ func WithBaseHeight(value float64) SetBaseOptionFunc {
opts.Height = &value
}
}
func WithAccumulation(value int) SetBaseOptionFunc {
return func(opts *SetBaseOptions) {
opts.Accumulation = &value
}
}