Skip to content

Commit

Permalink
traci: fix documentation of angle
Browse files Browse the repository at this point in the history
  • Loading branch information
sommer committed Mar 22, 2016
1 parent 12c71ce commit e318d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/veins/modules/mobility/traci/TraCIConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ double TraCIConnection::omnet2traciAngle(double angle) const {
// convert to degrees
angle = angle * 180 / M_PI;

// rotate angle so 0 is south (in OMNeT++'s angle interpretation 0 is in positive x direction, 90 is in positive y direction)
// rotate angle so 0 is south (in OMNeT++'s angle interpretation 0 is east, 90 is north)
angle = 90 - angle;

// normalize angle to -180 <= angle < 180
Expand Down

0 comments on commit e318d30

Please sign in to comment.