![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
code for the speed robot
Dependencies: MPU6050-DMP mbed PololuQTRSensors vl53l0x
main.cpp@0:c3a27228c31b, 2019-09-30 (annotated)
- Committer:
- deepanaishtaweera174
- Date:
- Mon Sep 30 08:00:47 2019 +0000
- Revision:
- 0:c3a27228c31b
- Child:
- 1:b188e27eb7da
working gyro code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
deepanaishtaweera174 | 0:c3a27228c31b | 1 | #include "mbed.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 2 | #include <string> |
deepanaishtaweera174 | 0:c3a27228c31b | 3 | #include "_def.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 4 | #include "_pins.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 5 | #include "_var.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 6 | #include "gyro.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 7 | |
deepanaishtaweera174 | 0:c3a27228c31b | 8 | int main() |
deepanaishtaweera174 | 0:c3a27228c31b | 9 | { |
deepanaishtaweera174 | 0:c3a27228c31b | 10 | int i = 1; |
deepanaishtaweera174 | 0:c3a27228c31b | 11 | PrintSerial("hello world"); |
deepanaishtaweera174 | 0:c3a27228c31b | 12 | InitMPU(); |
deepanaishtaweera174 | 0:c3a27228c31b | 13 | while(1) { |
deepanaishtaweera174 | 0:c3a27228c31b | 14 | GetAngles(false); |
deepanaishtaweera174 | 0:c3a27228c31b | 15 | } |
deepanaishtaweera174 | 0:c3a27228c31b | 16 | } |