11月修改
This commit is contained in:
@@ -4,7 +4,7 @@ include_once behavior/behavior_fire.txt
|
||||
include_once signatures/human_signature.txt
|
||||
|
||||
platform_type MAN_AM WSF_PLATFORM
|
||||
icon human
|
||||
icon marker
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
include_once signatures/human_signature.txt
|
||||
|
||||
platform_type SNIPER WSF_PLATFORM
|
||||
icon human
|
||||
icon marker
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
|
||||
40
platforms/red/detect_jam_car.txt
Normal file
40
platforms/red/detect_jam_car.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/vehicle_signature.txt
|
||||
include_once weapons/jammer/radar_jammer_2_18ghz.txt
|
||||
include_once weapons/jammer/comm_jammer_30m_3g.txt
|
||||
|
||||
platform_type DETECT_JAM_CAR WSF_PLATFORM
|
||||
icon comm_truck_icon
|
||||
infrared_signature VEHICLE_INFRARED_SIGNATURE
|
||||
optical_signature VEHICLE_OPTICAL_SIGNATURE
|
||||
radar_signature VEHICLE_RADAR_SIGNATURE
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
weapon radar_jammer RADAR_JAMMER_2_18GHZ
|
||||
on
|
||||
yaw 0 deg
|
||||
pitch -10 deg
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
weapon comm_jammer COMM_JAMMER_30M_3G
|
||||
on
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
end_platform_type
|
||||
@@ -1,6 +1,7 @@
|
||||
# File generated by Wizard 2.9.0 on Oct 22, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/human_signature.txt
|
||||
include_once behavior/net_detect_group_behavior/move.txt
|
||||
|
||||
platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
icon low_blow
|
||||
@@ -8,6 +9,10 @@ platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
mover WSF_GROUND_MOVER
|
||||
|
||||
end_mover
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
@@ -17,10 +22,24 @@ platform_type NET_DETECT_GROUP WSF_PLATFORM
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
processor task_mgr WSF_SCRIPT_PROCESSOR
|
||||
update_interval 5 sec
|
||||
advanced_behavior_tree
|
||||
btt on
|
||||
selector
|
||||
behavior_node move
|
||||
end_selector
|
||||
end_advanced_behavior_tree
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
comm cmdr_net DATALINK
|
||||
network_name <local:slave>
|
||||
internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
end_platform_type
|
||||
33
platforms/red/shortwave_jammer.txt
Normal file
33
platforms/red/shortwave_jammer.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||||
include_once sensors/radar/acq_radar.txt
|
||||
include_once signatures/human_signature.txt
|
||||
include_once weapons/jammer/radar_jammer_2_18ghz.txt
|
||||
include_once weapons/jammer/comm_jammer_30m_3g.txt
|
||||
|
||||
platform_type SHORTWAVE_JAMMER WSF_PLATFORM
|
||||
icon height_finder
|
||||
infrared_signature HUMAN_INFRARED_SIGNATURE
|
||||
optical_signature HUMAN_OPTICAL_SIGNATURE
|
||||
radar_signature HUMAN_RADAR_SIGNATURE
|
||||
|
||||
sensor ew_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
weapon comm_jammer COMM_JAMMER_30M_3G
|
||||
on
|
||||
ignore_same_side
|
||||
end_weapon
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
end_platform_type
|
||||
@@ -8,11 +8,13 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
#script_debug_writes true
|
||||
#show_state_transitions
|
||||
#show_task_messages
|
||||
|
||||
|
||||
|
||||
script_variables
|
||||
int MAX_SAMS_PER_TARGET = 2;
|
||||
int MAX_ASSIGNMENTS_PER_SAM = 4;
|
||||
string WEAPON_NAME = "";
|
||||
string IS_MOVE = "true";
|
||||
end_script_variables
|
||||
|
||||
// determine if TRACK is assignable
|
||||
@@ -47,11 +49,13 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
end_script
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
script void sendMessage()
|
||||
#writeln("MakeAssignments ");
|
||||
script void sendMessage()
|
||||
writeln("sendMessage");
|
||||
Array<WsfPlatform> firer = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> mover = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> waiter = Array<WsfPlatform>();
|
||||
Array<WsfPlatform> net_mover = Array<WsfPlatform>();
|
||||
|
||||
foreach (WsfPlatform sub in PLATFORM.Subordinates())
|
||||
{
|
||||
|
||||
@@ -70,13 +74,25 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(sub.Type() == "NET_DETECT_GROUP")
|
||||
{
|
||||
writeln("is NET_DETECT_GROUP");
|
||||
if(IS_MOVE=="true")
|
||||
{
|
||||
IS_MOVE="false";
|
||||
writeln("*** Adding ", sub.Name(), " to net_mover");
|
||||
net_mover.PushBack(sub);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int i;
|
||||
int numAssignments = (int)MATH.Min(firer.Size(), MAX_SAMS_PER_TARGET);
|
||||
int num=(int)net_mover.Size();
|
||||
|
||||
for (int i=0; i < numAssignments; i = i + 1)
|
||||
{
|
||||
writeln("assign fire");
|
||||
@@ -86,34 +102,23 @@ processor SSM_CMDR_TASK_MGR WSF_TASK_PROCESSOR
|
||||
PLATFORM.Comm("sub_net").SendMessage(msg,firer[i].Name(),"cmdr_net");
|
||||
AssignTask(TRACK, "FIRE", firer[i]);
|
||||
}
|
||||
|
||||
|
||||
for(int i=0;i<num;i=i+1)
|
||||
{
|
||||
writeln("assign net_move");
|
||||
WsfControlMessage msg = WsfControlMessage();
|
||||
msg.SetAuxData("task","MOVE");
|
||||
PLATFORM.Comm("sub_net").SendMessage(msg,net_mover[i].Name(),"cmdr_net");
|
||||
}
|
||||
|
||||
end_script
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
evaluation_interval DETECTED 20.0 sec
|
||||
time_to_evaluate DETECTED 5.0 secs
|
||||
state DETECTED
|
||||
next_state ASSIGNED
|
||||
if (! IsAssignable()) return false;
|
||||
sendMessage();
|
||||
return true;
|
||||
end_next_state
|
||||
end_state
|
||||
|
||||
evaluation_interval ASSIGNED 20.0 sec
|
||||
time_to_evaluate ASSIGNED 1.0 secs
|
||||
state ASSIGNED
|
||||
next_state DETECTED
|
||||
if (! IsAssignable())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
sendMessage();
|
||||
return false;
|
||||
end_next_state
|
||||
end_state
|
||||
|
||||
update_interval 10 s
|
||||
on_update
|
||||
sendMessage();
|
||||
end_on_update
|
||||
end_processor
|
||||
|
||||
platform_type SSM_CMDR WSF_PLATFORM
|
||||
@@ -137,11 +142,9 @@ platform_type SSM_CMDR WSF_PLATFORM
|
||||
purge_interval 60 sec
|
||||
end_processor
|
||||
|
||||
processor task_mgr COMMON_CMDR_TASK_MGR
|
||||
operating_level ENGAGE 1
|
||||
processor task_mgr SSM_CMDR_TASK_MGR
|
||||
|
||||
end_processor
|
||||
|
||||
|
||||
|
||||
end_platform_type
|
||||
@@ -12,20 +12,14 @@ platform_type TRANSPORT_COPTER WSF_PLATFORM
|
||||
mover WSF_AIR_MOVER
|
||||
end_mover
|
||||
|
||||
sensor acq_radar ACQ_RADAR
|
||||
on
|
||||
internal_link data_mgr
|
||||
ignore_same_side
|
||||
end_sensor
|
||||
|
||||
processor data_mgr WSF_LINKED_PROCESSOR
|
||||
report_to commander via sub_net
|
||||
end_processor
|
||||
|
||||
comm sub_net DATALINK
|
||||
network_name <local:slave>
|
||||
#internal_link task_mgr
|
||||
end_comm
|
||||
|
||||
processor task_mgr WSF_TASK_PROCESSOR
|
||||
|
||||
end_processor
|
||||
|
||||
end_platform_type
|
||||
Reference in New Issue
Block a user