![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TUK Workshop
Dependencies: mbed lib_workshop_2019
src/test_compass/test_compass.cpp@1:7a8764e627b5, 2019-10-23 (annotated)
- Committer:
- gvaquette
- Date:
- Wed Oct 23 13:01:35 2019 +0000
- Revision:
- 1:7a8764e627b5
test ULTRASONIC and COMPASS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gvaquette | 1:7a8764e627b5 | 1 | #include "mbed.h" |
gvaquette | 1:7a8764e627b5 | 2 | #include "CMPS03.h" |
gvaquette | 1:7a8764e627b5 | 3 | |
gvaquette | 1:7a8764e627b5 | 4 | #include "test_compass.h" |
gvaquette | 1:7a8764e627b5 | 5 | |
gvaquette | 1:7a8764e627b5 | 6 | |
gvaquette | 1:7a8764e627b5 | 7 | void ft_print_compass_values(CMPS03 &compass , Serial &pc) |
gvaquette | 1:7a8764e627b5 | 8 | { |
gvaquette | 1:7a8764e627b5 | 9 | pc.printf("\r Bearing from library (PWM) : %lf", compass.getBearing()); |
gvaquette | 1:7a8764e627b5 | 10 | } |