<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='DicassExample.x3d' name='title'/>
    <meta content='AN/SSQ-62B/C/D/E Directional Command Activated Sonobuoy System (DICASS) Sonobuoy' name='description'/>
    <meta content='x=East, z=North, y=Up' name='coordinateSystem'/>
    <meta content='Don Brutzman' name='creator'/>
    <meta content='30 January 2003' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='under development, updating script code to X3D' name='warning'/>
    <meta content='DICASS-an-ssq-62.pdf' name='reference'/>
    <meta content='https://www.fas.org/man/dod-101/sys/ship/weaps/an-ssq-62.htm' name='reference'/>
    <meta content='NAVY TRAINING SYSTEM PLAN FOR THE NAVY CONSOLIDATED SONOBUOYS N88-NTSP-A-50-8910B/A SEPTEMBER 1998' name='reference'/>
    <meta content='ntsp-Sonobuoy.pdf' name='reference'/>
    <meta content='https://www.fas.org/man/dod-101/sys/ship/weaps/docs/ntsp-Sonobuoy.pdf' name='reference'/>
    <meta content='http://www.avtechtra.navy.mil/pdf/Sonobuoys_a.PDF' name='reference'/>
    <meta content='http://www.ultra-scs.com/sonobuoys/dicass.htm' name='reference'/>
    <meta content='http://www.ultra-ussg.com/company/sonobuoy_history.cfm' name='reference'/>
    <meta content='DICASS sonobuoy' name='subject'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/CommunicationsAndSensors/Sonobuoys/DicassExample.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='DicassExample.x3d'/>
    <ExternProtoDeclare appinfo='AN/SSQ-62B/C/D/E Directional Command Activated Sonobuoy System (DICASS) Sonobuoy' name='DICASS' url='"DicassPrototype.x3d#DICASS" "https://www.web3d.org/x3d/content/examples/Savage/CommunicationsAndSensors/Sonobuoys/DicassPrototype.x3d#DICASS" "DicassPrototype.wrl#DICASS" "https://www.web3d.org/x3d/content/examples/Savage/CommunicationsAndSensors/Sonobuoys/DicassPrototype.wrl#DICASS"'>
      <field accessType='inputOutput' appinfo='identifier label for this buoy' name='ID' type='MFString'/>
      <field accessType='initializeOnly' appinfo='default value: AN/SSQ-62B' name='version' type='SFString'/>
      <field accessType='initializeOnly' appinfo='local surface coordinates X=North Z=East' name='initialPositionXZ' type='SFVec2f'/>
      <field accessType='inputOnly' appinfo='local surface coordinates X=North Z=East' name='orderedPositionXZ' type='SFVec2f'/>
      <field accessType='initializeOnly' appinfo='meters depth use negative numbers for subsurface' name='initialDepth' type='SFFloat'/>
      <field accessType='inputOnly' appinfo='meters depth use negative numbers for subsurface' name='orderedDepth' type='SFFloat'/>
      <field accessType='inputOnly' appinfo='trigger event to bind/unbind viewpoint' name='bindViewpoint' type='SFBool'/>
      <field accessType='outputOnly' appinfo='local coordinates X=North Y=altitude Z=East' name='location_changed' type='SFVec3f'/>
      <field accessType='initializeOnly' appinfo='maximum audible sonar detection range meters' name='maxRange' type='SFFloat'/>
      <field accessType='outputOnly' appinfo='pingDuration corresponds to maxRange at 1500m/sec sound speed' name='pingDuration' type='SFTime'/>
      <field accessType='initializeOnly' appinfo='in-water sound speed m/s, default value 1500' documentation='https://en.wikipedia.org/wiki/Speed_of_sound#Seawater' name='soundSpeed' type='SFFloat'/>
      <field accessType='inputOnly' appinfo='trigger event to start single ping' name='startPing' type='SFBool'/>
      <field accessType='inputOnly' appinfo='trigger event to start continuous ping sequence' name='startContinuousPings' type='SFBool'/>
      <field accessType='inputOutput' appinfo='Can add linkable text for further information' name='linkText' type='MFString'/>
      <field accessType='inputOutput' appinfo='url for linkable text' name='linkUrl' type='MFString'/>
      <field accessType='inputOutput' appinfo='target window for linkable text' name='linkTargetWindow' type='MFString'/>
    </ExternProtoDeclare>
    <!-- Rendered scene begins here -->
    <Background DEF='AquaTealBackground' groundColor='0.0 0.25 0.25' skyColor='0 1 1'/>
    <NavigationInfo speed='100' type='"EXAMINE" "FLY" "ANY"'/>
    <ProtoInstance DEF='DicassExample' name='DICASS'>
      <fieldValue name='ID' value='"DicassExample"'/>
      <fieldValue name='initialPositionXZ' value='0 0'/>
      <fieldValue name='initialDepth' value='-1'/>
      <fieldValue name='linkText' value='"click for online SAVAGE Archive"'/>
      <fieldValue name='linkUrl' value='"https://www.web3d.org/x3d/content/examples/Savage/CommunicationsAndSensors/Sonobuoys/index.html"'/>
      <fieldValue name='linkTargetWindow' value='"target=_blank"'/>
    </ProtoInstance>
    <!-- Interface to test DICASS buoy -->
    <Transform translation='0 0 2000'>
      <Viewpoint description='DICASS 2 km'/>
      <Transform translation='-3.5 -3 0'>
        <Shape>
          <Text string='"single ping"'>
            <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.9'/>
          </Text>
          <Appearance>
            <Material DEF='InterfaceMaterial' diffuseColor='0.8 0.5 0.1'/>
          </Appearance>
        </Shape>
        <TouchSensor DEF='SinglePingTouch' description='Single Ping TouchSensor'/>
        <ROUTE fromField='isActive' fromNode='SinglePingTouch' toField='startPing' toNode='DicassExample'/>
      </Transform>
      <Transform translation='2.5 -3 0'>
        <Shape>
          <Text string='"continuous pings"'>
            <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.9'/>
          </Text>
          <Appearance>
            <Material USE='InterfaceMaterial'/>
          </Appearance>
        </Shape>
        <TouchSensor DEF='ContinuousPingTouch' description='Continuous Ping TouchSensor'/>
        <ROUTE fromField='isActive' fromNode='ContinuousPingTouch' toField='startContinuousPings' toNode='DicassExample'/>
      </Transform>
    </Transform>
  </Scene>
</X3D>