SetupCarrier
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetupCarrier | |
| Function Description: | Configures the radio and navigation settings of an aircraft carrier unit. The function activates the specified ACLS (Airborne Command & Logistics System) profile, sets up a Link‑4 frequency, and calculates the TACAN frequency for the given channel and mode. It expects the carrier to be a valid Unit object; otherwise it logs an error and exits. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.SetupCarrier( string unitName , number freq , string radioMod , number acls , string aclsN , number link4 ,string link4N , number tacanN , string tacanXY ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| unitName | The name of the carrier unit to configure (e.g., "USS Abraham Lincoln"). | |
| freq | The base radio frequency in MHz (unused in current implementation but kept for future use). | |
| radioMod | Radio mode identifier ("AM", "FM", etc.) – currently not used directly. | |
| acls | ACLS profile number to activate on the carrier. | |
| aclsN | Human‑readable name of the ACLS profile (defaults to "UNKNOWN" if nil). | |
| link4 | Link‑4 frequency in MHz (defaults to 11 MHz if nil). | |
| link4N | Name for the Link‑4 channel (defaults to "UNKNOWN"). | |
| tacanN | TACAN channel number (1–127) used to compute the actual frequency. | |
| tacanXY | TACAN mode, either "X" or "Y" (defaults to "X"). | |
| Example: | CMM.SetupCarrier("USS Abraham Lincoln",300,"AM",11,"ACLS-Alpha",77,"Link4-Alpha",71,"X") | |
| Example Description: | Demonstrates setting up the carrier "USS Abraham Lincoln" with ACLS profile 11, Link‑4 at 77 MHz, and TACAN channel 71 in mode "X". | |
| Related Functions: | ||
| Notes: | ||