Author Topic: Radio frequency in DCS with Jester AI  (Read 30 times)

abaco

  • Newbie
  • *
  • Posts: 1
Radio frequency in DCS with Jester AI
« on: April 14, 2025, 08:28:28 PM »
Hi,

I'm trying to setup VoiceAttack to speak radio frequencies in DCS and pass them to Jester in the F-14. A quick search didn't produce the results I'm looking for, so I'm asking here before I dig deeper into the documentation.

Basically:
- User speaks a radio frequency, e.g. "Jester tune radio to one-two-six-point-five-seven-five"
- VA produces the following outcome:
   - Start with initial sequence "Shift A > A > A > Ctrl 1 > Ctrl 4"
   - Then press "Ctrl 1 > Ctrl 2 > Ctrl 6 > Ctrl 5 > Ctrl 4" (the frequency numbers)

The keys to press are generally Ctrl + #, with some additional logic if digits fall in the 8-0 range (Ctrl 8 then Ctrl 6-8) or for the last two 00,25,50,75 kHz (Ctrl 1-4), or if user skips the trailing zeros.

I was thinking of doing a simple loop over the frequency array, but understand that VA doesn't support arrays. Has this been solved before?

Thank you!



SemlerPDX

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 326
  • Upstanding Lunatic
    • My AVCS Homepage
Re: Radio frequency in DCS with Jester AI
« Reply #1 on: April 15, 2025, 12:48:24 PM »
If you need to work with arrays in order to simplify your logic and flow, you can use inline function(s) written in VB.net or C#, which of course support arrays.  You can bring in or send out any information needed from VA, such as what was said in the command phrase, etc., and cast those as needed into arrays with minimal effort.

You could also use native VoiceAttack actions, such as dynamically named variables you could iterate over in a loop, or other such fancy footwork.

In the end, such a complex logical goal will require a bit of effort and a keen attention to detail, not to mention plenty of patience and testing - but what you propose is entirely possible using native VA tools or better still, inline functions.

Here are some posts that may help you get on the right track:
Control flow (If, Else, ElseIf, Loop, Jump) basics

Variables and tokens summed up