feat: added RIT and XIT for Icom
This commit is contained in:
@@ -7842,6 +7842,30 @@ func (a *App) IcomSetScopeMode(fixed bool) error {
|
||||
return a.cat.IcomDo(func(ic cat.IcomController) error { return ic.SetScopeMode(fixed) })
|
||||
}
|
||||
|
||||
// IcomSetRIT sets the RIT/ΔTX offset in signed Hz.
|
||||
func (a *App) IcomSetRIT(hz int) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.IcomDo(func(ic cat.IcomController) error { return ic.SetRIT(hz) })
|
||||
}
|
||||
|
||||
// IcomSetRITOn toggles RIT.
|
||||
func (a *App) IcomSetRITOn(on bool) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.IcomDo(func(ic cat.IcomController) error { return ic.SetRITOn(on) })
|
||||
}
|
||||
|
||||
// IcomSetXITOn toggles ΔTX (XIT).
|
||||
func (a *App) IcomSetXITOn(on bool) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.IcomDo(func(ic cat.IcomController) error { return ic.SetXITOn(on) })
|
||||
}
|
||||
|
||||
func (a *App) IcomSetPTT(on bool) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
|
||||
Reference in New Issue
Block a user