Test
Dependencies: SRF02 SRF05 mbed
Fork of Prosjekt_2 by
Revision 25:a35c991995ce, committed 2016-04-30
- Comitter:
- leonardene
- Date:
- Sat Apr 30 11:00:06 2016 +0000
- Parent:
- 24:06d3a7b85602
- Commit message:
- Flytta array _2d;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 06d3a7b85602 -r a35c991995ce main.cpp --- a/main.cpp Sat Apr 30 10:58:53 2016 +0000 +++ b/main.cpp Sat Apr 30 11:00:06 2016 +0000 @@ -164,6 +164,8 @@ void triangulering () { + char _2DplanX[12] = {'|','O','O','O','O','O','O','O','O','O','O','|'}; + char _2Dplan[12] = {'|','O','O','O','O','O','O','O','O','O','O','|'}; double vinkel_b, vinkel_a, vinkel_x, vinkel_y, y_akse, x_akse, hyp, PI; int a, b, c, n, m; float d; @@ -174,8 +176,6 @@ while (pc.readable() == 0 && bt.readable() == 0) {} h = input(); if (h == 'y') { - char _2DplanX[12] = {'|','O','O','O','O','O','O','O','O','O','O','|'}; - char _2Dplan[12] = {'|','O','O','O','O','O','O','O','O','O','O','|'}; d = 0.0; b = n = m = 0; while (d < 180.0 || d > 280.0 && n < 10) {