Tool_QuerySoundLevel

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Parel803
Posts: 962
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Tool_QuerySoundLevel

Post by Parel803 »

Good Evening,

Wondering if this is the correct notation for this?
print(Tool_QuerySoundLevel({targetunitname='F 802 De Zeven Provinciën', frequency='VLF'}))
print(Tool_QuerySoundLevel({targetunitname='F 802 De Zeven Provinciën', frequency='HF'}))

Because I get same values returned so I might have made an error.

regards GJ
Nikel
Posts: 3233
Joined: Tue Mar 24, 2009 10:51 am

Re: Tool_QuerySoundLevel

Post by Nikel »

I have tried with a sub, the values are always the same for the 4 frequencies, changing with the speed. Bug?

18 kts
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='VLF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='HF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='LF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='MF'}))
48.2000007629395
48.2000007629395
48.2000007629395
48.2000007629395


25 kts
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='VLF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='HF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='LF'}))
print(Tool_QuerySoundLevel({targetunitname='SSGN 727 Michigan', frequency='MF'}))
67
67
67
67


What is printed is the single value that appears on the map when the option Wake and Cavitation is activated.

SL.png
SL.png (13.79 KiB) Viewed 232 times
User avatar
blu3s
Posts: 1329
Joined: Fri Jul 08, 2022 9:45 am

Re: Tool_QuerySoundLevel

Post by blu3s »

Fixed for next release via michaelm75au:

Code: Select all

print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf', aspect='all'}))
{ front = 67.5999984741211, side = 68.1999969482422, rear = 68.8000030517578 }

print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf'}))  ' as is
68.8000030517578

print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf', aspect='side'}))
68.1999969482422
Parel803
Posts: 962
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Tool_QuerySoundLevel

Post by Parel803 »

Thank you all
regards GJ
Post Reply

Return to “Lua Legion”