Skip to content

Commit

Permalink
Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pagmatt committed Oct 25, 2023
1 parent 7707e55 commit 39c5952
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/aloha-throughput.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ main(int argc, char* argv[])
* Create Gateways *
*********************/

// Create the gateway nodes (allocate them uniformely on the disc)
// Create the gateway nodes (allocate them uniformly on the disc)
NodeContainer gateways;
gateways.Create(nGateways);

Expand Down
4 changes: 2 additions & 2 deletions examples/complete-network-example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ main(int argc, char* argv[])
cmd.AddValue("appPeriod",
"The period in seconds to be used by periodically transmitting applications",
appPeriodSeconds);
cmd.AddValue("print", "Whether or not to print various informations", print);
cmd.AddValue("print", "Whether or not to print various information", print);
cmd.Parse(argc, argv);

// Set up logging
Expand Down Expand Up @@ -201,7 +201,7 @@ main(int argc, char* argv[])
* Create Gateways *
*********************/

// Create the gateway nodes (allocate them uniformely on the disc)
// Create the gateway nodes (allocate them uniformly on the disc)
NodeContainer gateways;
gateways.Create(nGateways);

Expand Down
2 changes: 1 addition & 1 deletion examples/frame-counter-update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ main(int argc, char* argv[])
mac->TraceConnectWithoutContext("RequiredTransmissions", MakeCallback(&OnMacPacketOutcome));
}

// Create the gateway nodes (allocate them uniformely on the disc)
// Create the gateway nodes (allocate them uniformly on the disc)
NodeContainer gateways;
gateways.Create(nGateways);

Expand Down
2 changes: 1 addition & 1 deletion helper/lora-phy-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class LoraPhyHelper
void Set(std::string name, const AttributeValue& v);

/**
* Crate a LoraPhy and connect it to a device on a node.
* Create a LoraPhy and connect it to a device on a node.
*
* \param node the node on which we wish to create a wifi PHY.
* \param device the device within which this PHY will be created.
Expand Down
6 changes: 3 additions & 3 deletions model/adr-component.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ AdrComponent::BeforeSendingReply(Ptr<EndDeviceStatus> status, Ptr<NetworkStatus>
myPacket->RemoveHeader(mHdr);
myPacket->RemoveHeader(fHdr);

// Execute the ADR algotithm only if the request bit is set
// Execute the ADR algorithm only if the request bit is set
if (fHdr.GetAdr())
{
if (int(status->GetReceivedPacketList().size()) < historyRange)
Expand Down Expand Up @@ -202,8 +202,8 @@ AdrComponent::AdrImplementation(uint8_t* newDataRate,

NS_LOG_DEBUG("SF = " << (unsigned)spreadingFactor);

// Get the device data rate and use it to get the SNR demodulation treshold
double req_SNR = treshold[SfToDr(spreadingFactor)];
// Get the device data rate and use it to get the SNR demodulation threshold
double req_SNR = threshold[SfToDr(spreadingFactor)];

NS_LOG_DEBUG("Required SNR = " << req_SNR);

Expand Down
2 changes: 1 addition & 1 deletion model/adr-component.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class AdrComponent : public NetworkControllerComponent

// Vector containing the required SNR for the 6 allowed SF levels
// ranging from 7 to 12 (the SNR values are in dB).
double treshold[6] = {-20.0, -17.5, -15.0, -12.5, -10.0, -7.5};
double threshold[6] = {-20.0, -17.5, -15.0, -12.5, -10.0, -7.5};

bool m_toggleTxPower;
};
Expand Down
2 changes: 1 addition & 1 deletion model/class-a-end-device-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ ClassAEndDeviceLorawanMac::GetNextClassTransmissionDelay(Time waitingTime)
NS_LOG_FUNCTION_NOARGS();

// This is a new packet from APP; it can not be sent until the end of the
// second receive window (if the second recieve window has not closed yet)
// second receive window (if the second receive window has not closed yet)
if (!m_retxParams.waitingAck)
{
if (!m_closeFirstWindow.IsExpired() || !m_closeSecondWindow.IsExpired() ||
Expand Down
2 changes: 1 addition & 1 deletion model/end-device-lora-phy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ EndDeviceLoraPhy::~EndDeviceLoraPhy()

// Downlink sensitivity (from SX1272 datasheet)
// {SF7, SF8, SF9, SF10, SF11, SF12}
// These sensitivites are for a bandwidth of 125000 Hz
// These sensitivities are for a bandwidth of 125000 Hz
const double EndDeviceLoraPhy::sensitivity[6] = {-124, -127, -130, -133, -135, -137};

void
Expand Down
2 changes: 1 addition & 1 deletion model/end-device-lora-phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class EndDeviceLoraPhyListener
* We are about to send the first bit of the packet.
* We do not send any event to notify the end of
* transmission. Listeners should assume that the
* channel implicitely reverts to the idle state
* channel implicitly reverts to the idle state
* unless they have received a cca busy report.
*
* \param duration the expected transmission duration.
Expand Down
2 changes: 1 addition & 1 deletion model/end-device-lorawan-mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ EndDeviceLorawanMac::Send(Ptr<Packet> packet)
{
// Make sure we can transmit at the current power on this channel
NS_ASSERT_MSG(m_txPower <= m_channelHelper.GetTxPowerForChannel(txChannel),
" The selected power is too hight to be supported by this channel.");
" The selected power is too high to be supported by this channel.");
DoSend(packet);
}
}
Expand Down
2 changes: 1 addition & 1 deletion model/lora-device-address.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class LoraDeviceAddress
*
* Note that nwkId is 7 bits long, and this function expects the 7 least
* significant bits to contain the nwkId. Similarly for the nwkAddr, the 25
* least signficant bits of the uint32 are those that are expected to
* least significant bits of the uint32 are those that are expected to
* contain the nwkAddr.
*/
void Set(uint8_t nwkId, uint32_t nwkAddr);
Expand Down
2 changes: 1 addition & 1 deletion model/lora-frame-header.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ LoraFrameHeader::GetFPending(void) const
uint8_t
LoraFrameHeader::GetFOptsLen(void) const
{
// Sum the serialized lenght of all commands in the list
// Sum the serialized length of all commands in the list
uint8_t fOptsLen = 0;
std::list<Ptr<MacCommand>>::const_iterator it;
for (it = m_macCommands.begin(); it != m_macCommands.end(); it++)
Expand Down
2 changes: 1 addition & 1 deletion model/lora-phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class LoraPhy : public Object
* transmitted.
*
* Besides from the ones saved in LoraTxParameters, the packet's payload
* (obtained through a GetSize () call to accout for the presence of Headers
* (obtained through a GetSize () call to account for the presence of Headers
* and Trailers, too) also influences the packet transmit time.
*
* \param packet The packet that needs to be transmitted.
Expand Down
2 changes: 1 addition & 1 deletion model/lora-tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LoraTag : public Tag
* This value works in two ways:
* - It is used by the GW to signal to the NS the frequency of the uplink
packet
* - It is used by the NS to signal to the GW the freqeuncy of a downlink
* - It is used by the NS to signal to the GW the frequency of a downlink
packet
*/
void SetFrequency(double frequency);
Expand Down
4 changes: 2 additions & 2 deletions model/periodic-sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class PeriodicSender : public Application

/**
* Set the sending interval
* \param interval the interval between two packet sendings
* \param interval the interval between two packet send instances
*/
void SetInterval(Time interval);

/**
* Get the sending inteval
* Get the sending interval
* \returns the interval between two packet sends
*/
Time GetInterval(void) const;
Expand Down
2 changes: 1 addition & 1 deletion test/lorawan-test-suite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ PhyConnectivityTest::DoRun(void)
NS_TEST_EXPECT_MSG_EQ(
m_underSensitivityCalls,
1,
"Packet that should have been lost because of low receive power was recevied");
"Packet that should have been lost because of low receive power was received");

Reset();

Expand Down

0 comments on commit 39c5952

Please sign in to comment.