Skip to content

Commit

Permalink
Merge pull request #563 from RWTH-EBC/issue561_rotate
Browse files Browse the repository at this point in the history
treat 360 as 0 degree
  • Loading branch information
marcusfuchs authored Feb 7, 2019
2 parents 7c1ec8d + d2673b2 commit b98da59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teaser/data/output/modelicatemplate/conversion
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
return_value.append(deg_to_rad(-180.0+element))
elif element == 0:
return_value.append(deg_to_rad(180.0))
elif element == 360:
return_value.append(deg_to_rad(180.0))
elif element == -1:
return_value.append(deg_to_rad(0.0))
elif element == -2:
Expand All @@ -32,6 +34,8 @@
return_value = deg_to_rad(-180.0+value)
elif value == 0:
return_value = deg_to_rad(180.0)
elif value == 360:
return_value = deg_to_rad(180.0)
elif value == -1:
return_value = deg_to_rad(0.0)
elif value == -2:
Expand Down

0 comments on commit b98da59

Please sign in to comment.