src/energy/test/rv-battery-model-test.cc
changeset 7252 c8200621e252
parent 7174 e97fba349adf
child 7256 b04ba6772f8c
equal deleted inserted replaced
7251:b2fe610ad03f 7252:c8200621e252
   719    */
   719    */
   720   wifiPhy.Set ("RxGain", DoubleValue (0));
   720   wifiPhy.Set ("RxGain", DoubleValue (0));
   721   // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
   721   // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
   722   wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
   722   wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
   723 
   723 
   724   YansWifiChannelHelper wifiChannel ;
   724   YansWifiChannelHelper wifiChannel;
   725   wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
   725   wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
   726   wifiPhy.SetChannel (wifiChannel.Create ());
   726   wifiPhy.SetChannel (wifiChannel.Create ());
   727 
   727 
   728   // Add a non-QoS upper MAC, and disable rate control
   728   // Add a non-QoS upper MAC, and disable rate control
   729   NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
   729   NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
   806    */
   806    */
   807   wifiPhy.Set ("RxGain", DoubleValue (0));
   807   wifiPhy.Set ("RxGain", DoubleValue (0));
   808   // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
   808   // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
   809   wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
   809   wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
   810 
   810 
   811   YansWifiChannelHelper wifiChannel ;
   811   YansWifiChannelHelper wifiChannel;
   812   wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
   812   wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
   813   wifiPhy.SetChannel (wifiChannel.Create ());
   813   wifiPhy.SetChannel (wifiChannel.Create ());
   814 
   814 
   815   // Add a non-QoS upper MAC, and disable rate control
   815   // Add a non-QoS upper MAC, and disable rate control
   816   NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
   816   NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();