异星工场 指令

Command

向敌人和单位组发出指令。

指令目标解释
defines.command.attack
targetLuaEntity
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
defines.command.go_to_location
destinationPosition (optional)目标
destination_entityLuaEntity (optional)目标实体
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
pathfind_flagsPathFindFlags (optional)Flags to affect the pathfinder.
radiusdouble (optional)Distance from the exact target that the unit will consider itself “arrived” at. Default is 3.
defines.command.compound
structure_typedefines.compound_commandHow the commands should be chained together.
commandsarray of CommandThe sub-commands.
defines.command.group
groupLuaUnitGroupThe group whose command to follow.
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
use_group_distractionboolean (optional)Whether the unit will use the group distraction or the commands distraction. Defaults to true.
defines.command.attack_area
destinationPositionCenter of the attack area.
radiusdoubleRadius of the attack area.
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
defines.command.wander
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
radiusdouble (optional)Defaults to 10. Does not apply when wander_in_group is true.
wander_in_groupboolean (optional)When commanding a group, defines how the group will wander. When true, the units in the group will wander around inside the group’s radius, just like gathering biters. When false, the units will wander as a group, ie they will all walk together in the same random direction. Default is true for groups. Passing true for a single unit is an error.
ticks_to_waituint (optional)Ticks to wander before successfully completing the command. Default is max uint, which means wander forever.
defines.command.stop
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
ticks_to_waituint (optional)Ticks to wander before successfully completing the command. Default is max uint, which means stop forever.
defines.command.flee
fromLuaEntityThe entity to flee from
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
defines.command.build_base
destinationPositionWhere to build the base.
distractiondefines.distraction (optional)Defaults to defines.distraction.by_enemy.
ignore_plannerboolean (optional)Whether the units should ignore expansion candidate chunks. When false, they will obey and not build a base in a non-candidate chunk. Defaults to false.

distraction

参数解释
defines.distraction.nonePerform command even if someone attacks the unit.
defines.distraction.by_enemyAttack closer enemy entities with force.
defines.distraction.by_anythingAttack closer enemy entities, including entities “built” by player (belts, inserters, chests).
defines.distraction.by_damageAttack when attacked.
OFDM(正交频分复用)是一种高效的多载波通信技术,它将高速数据流拆分为多个低速子流,并通过多个并行的低带宽子载波传输。这种技术具有高频谱效率、强抗多径衰落能力和灵活的带宽分配优势。 OFDM系统利用大量正交子载波传输数据,子载波间的正交性可有效避免码间干扰(ISI)。其数学表达为多个离散子载波信号的线性组合,调制和解调过程通过FFT(快速傅立叶变换)和IFFT(逆快速傅立叶变换)实现。其关键流程包括:数据符号映射到子载波、IFFT转换为时域信号、添加循环前缀以减少ISI、信道传输、接收端FFT恢复子载波数据和解调原始数据。 Matlab是一种广泛应用于科研、工程和数据分析的高级编程语言和交互式环境。在OFDM系统设计中,首先需掌握Matlab基础,包括编程语法、函数库和工具箱。接着,根据OFDM原理构建系统模型,实现IFFT/FFT变换、循环前缀处理和信道建模等关键算法,并通过改变参数(如信噪比、调制方式)评估系统性能。最后,利用Matlab的绘图功能展示仿真结果,如误码率(BER)曲线等。 无线通信中主要考虑加性高斯白噪声(AWGN),其在频带上均匀分布且统计独立。通过仿真OFDM系统,可在不同信噪比下测量并绘制BER曲线。分析重点包括:不同调制方式(如BPSK、QPSK)对BER的影响、循环前缀长度选择对性能的影响以及信道估计误差对BER的影响。 OFDM技术广泛应用于多个领域,如数字音频广播(DAB)、地面数字电视广播(DVB-T)、无线局域网(WLAN)以及4G/LTE和5G移动通信,是这些通信标准中的核心技术之一。 深入研究基于Matlab的OFDM系统设计与仿真,有助于加深对OFDM技术的理解,并提升解决实际通信问题的能力。仿真得到的关键性能指标(如BER曲线)对评估系统可靠性至关重要。未来可进一步探索复杂信道条件下的OFDM性能及系统优化,以适应不同应用场景
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值