Skip to content

Commit

Permalink
Fix EmpiricalLightModel using headlightMaxTxAngle for tail light
Browse files Browse the repository at this point in the history
  • Loading branch information
sommer committed Nov 4, 2019
1 parent 516af2a commit 2e9a508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/veins-vlc/analogueModel/EmpiricalLightModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ void EmpiricalLightModel::filterSignal(Signal* signal)
}
case TAIL: {
bool inTxRange = tx2RxDistance <= taillightMaxTxRange;
bool inTxFov = ((receiverPos2D - senderPos2D) / cos(headlightMaxTxAngle)) * txHeadingVector >= tx2RxDistance;
bool inTxFov = ((receiverPos2D - senderPos2D) / cos(taillightMaxTxAngle)) * txHeadingVector >= tx2RxDistance;
bool inTxBearing = cosIncidenceAngle < 0;

// Debug messages
Expand Down

0 comments on commit 2e9a508

Please sign in to comment.