WRS2020用にメカナム台車をROS化
Dependencies: mbed PID2 JY901 QuaternionMath ros_lib_melodic i2cmaster WRS2020_mecanum_node
Dependents: WRS2020_mecanum_node
device.h@5:17ede03f1fa5, 2021-02-23 (annotated)
- Committer:
- sgrsn
- Date:
- Tue Feb 23 10:22:26 2021 +0000
- Revision:
- 5:17ede03f1fa5
- Parent:
- 0:c177452db984
Lateset commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sgrsn | 0:c177452db984 | 1 | #ifndef MY_DEVICE_H |
sgrsn | 0:c177452db984 | 2 | #define MY_DEVICE_H |
sgrsn | 0:c177452db984 | 3 | |
sgrsn | 0:c177452db984 | 4 | #include "i2cmaster.h" |
sgrsn | 0:c177452db984 | 5 | #include "JY901.h" |
sgrsn | 0:c177452db984 | 6 | #include "MyOdometer.h" |
sgrsn | 0:c177452db984 | 7 | |
sgrsn | 0:c177452db984 | 8 | i2c master(p28, p27); |
sgrsn | 0:c177452db984 | 9 | Timer timer; |
sgrsn | 0:c177452db984 | 10 | JY901 jy901(&master, &timer); |
sgrsn | 0:c177452db984 | 11 | MyOdometer my_odometry(&jy901); |
sgrsn | 0:c177452db984 | 12 | |
sgrsn | 0:c177452db984 | 13 | #endif |