#include <spdlog/spdlog.h>
#include <chrono>
#include <iostream>
#include <thread>
#include "drone/PioneerDrone.hpp"
int main() {
using namespace std::chrono_literals;
using namespace std;
spdlog::set_level(spdlog::level::warn);
for (int n = 0; n < 10; n++) {
cout <<
"Calibrated: " << drone.
get_imu() << endl;
this_thread::sleep_for(100ms);
}
}
imu::ImuData get_imu_raw(unsigned int n) const
Get the raw IMU data of IMU.
imu::ImuData get_imu() const
Get the calibrated IMU data.
Class representing a drone.
Definition PioneerDrone.hpp:31