Skip to content
Snippets Groups Projects
Commit dac8873d authored by Laia Freixas Mateu's avatar Laia Freixas Mateu
Browse files

solved bug in mtn_library

parent 74be625d
No related branches found
No related tags found
No related merge requests found
...@@ -337,9 +337,9 @@ int compass_deviation (int ini, int actual){ //Calculates the difference between ...@@ -337,9 +337,9 @@ int compass_deviation (int ini, int actual){ //Calculates the difference between
int add_angles (int a, int b){ int add_angles (int a, int b){
int res = a+b; int res = a+b;
if (res < 0 ) res+=360; if (res < 0 ) res+=3600;
else if (res>360){ else if (res>3600){
res-=360; res-=3600;
} }
return res; return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment