Research Article

Optimization of Transmission Signal Power through Observation of Congestion in VANets Using the Fuzzy Logic Approach: A Case Study in Highway and Urban Layout

Algorithm 8

Calculate the wait time to schedule the transmission based on the level of congestion.

// Transmission power update
// See: Eq. (4)
txPower setUpdateTxPower (congestion);
distFromSrc getDist
       ;
stdDelay ;
fzDelay setDelayFor (congestion);
// Time to schedule the next transmission
delay stdDelay + fzDelay;