<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=PrepFrequencyForUnit</id>
	<title>PrepFrequencyForUnit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=PrepFrequencyForUnit"/>
	<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=PrepFrequencyForUnit&amp;action=history"/>
	<updated>2026-06-04T14:15:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://cmm.ozdeadmeat.com/index.php?title=PrepFrequencyForUnit&amp;diff=5754&amp;oldid=prev</id>
		<title>Ozdeadmeat: PrepFrequencyForUnit – created via PowerShell script (2025-11-11T21:11:57Z)</title>
		<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=PrepFrequencyForUnit&amp;diff=5754&amp;oldid=prev"/>
		<updated>2025-11-11T10:11:59Z</updated>

		<summary type="html">&lt;p&gt;PrepFrequencyForUnit – created via PowerShell script (2025-11-11T21:11:57Z)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:FunctionInfo|fName=          PrepFrequencyForUnit|fDescription=   Creates a SetFrequencyForUnit command that sets the radio frequency of a specified unit. The function accepts either MHz (e.g. 235.75) or Hz; if the value is &amp;lt; 500 it is treated as MHz and converted to Hz internally.|parentFile=     cmm.DCSFunctions.lua|syntax=         CMM.PrepFrequencyForUnit(&amp;lt;unitId number&amp;gt;, &amp;lt;freq number&amp;gt;, &amp;lt;modulationID number&amp;gt;)|return=         table|returnDesc=     Returns a fully‑formed command table that can be passed to unit:task() or inserted into a mission template.|example=        local cmd = CMM.PrepFrequencyForUnit(unit:getID(), 235.75, 0)  -- AM at 235.75 MHz|exampleDesc=    Sets the unit’s radio to AM on 235.75 MHz (converted internally to 235750000 Hz).|related=        |note=           |envType= CMM|par1=         number unitId|reqType1=     number|reqName1=     unitId|desc1=       The Unit ID of the aircraft/vehicle whose radio should be configured (obtained via Unit.getByName(name):getID()).|par2=         number freq|reqType2=     number|reqName2=     freq|desc2=       Desired frequency. Accepts MHz or Hz – values ≥ 500 are treated as Hz, otherwise they are multiplied by 1 000 000 to convert to Hz.|par3=         number modulationID|reqType3=     number|reqName3=     modulationID|desc3=       Modulation type – use 0 for AM and 1 for FM.}}&lt;/div&gt;</summary>
		<author><name>Ozdeadmeat</name></author>
	</entry>
</feed>