![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Diff: main.cpp
- Revision:
- 13:5566df1250f1
- Parent:
- 12:3cd91e150d9c
- Child:
- 14:1dd83e626153
--- a/main.cpp Wed Dec 12 17:32:24 2018 +0000 +++ b/main.cpp Wed Dec 12 17:38:02 2018 +0000 @@ -32,12 +32,13 @@ void read_gyro() { int g[3]; + float dt; Updater *u = Updater::instance(); - u->gyro(g); + u->gyro(g, dt); - printf("Gyro: %d, %d, %d\n", g[0], g[1], g[2]); + printf("Gyro: %d, %d, %d - dt: %f\n", g[0], g[1], g[2], dt); } void reset() @@ -80,13 +81,13 @@ printf("error loading config\n"); } - // Startup shell + printf("Starting shell...\n"); sh.attach(test, "test"); sh.attach(read_gyro, "gyro"); sh.attach(reset, "reset"); thread.start(callback(&sh, &SimpleShell::run)); - // Startup updater + printf("Starting updater...\n"); Updater *u = Updater::instance(); u->start(50);