feat: Management of multiple slices on Flexradio
This commit is contained in:
@@ -8270,6 +8270,22 @@ func (a *App) FlexSetSplit(on bool) error {
|
||||
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetSplit(on) })
|
||||
}
|
||||
|
||||
// FlexSetActiveSlice focuses a slice (A/B/C/D…) so all commands target it.
|
||||
func (a *App) FlexSetActiveSlice(idx int) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetActiveSlice(idx) })
|
||||
}
|
||||
|
||||
// FlexSetTXSlice makes a slice the transmitter (e.g. TX on the active slice).
|
||||
func (a *App) FlexSetTXSlice(idx int) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetTXSlice(idx) })
|
||||
}
|
||||
|
||||
// keyFlexBandAnt stores the per-band RX/TX antenna map (global, machine-local).
|
||||
const keyFlexBandAnt = "flex.band_antennas"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user