#include <fmt/core.h>
#include <spdlog/cfg/env.h>
#include <chrono>
#include <iostream>
#include <thread>
#include "drone/PioneerDrone.hpp"
int main() {
using namespace std::chrono_literals;
using namespace std;
spdlog::cfg::load_env_levels();
cout << fmt::format(
"Light: {}", drone.
get_light()) << endl;
cout << fmt::format(
"Light: {}", drone.
get_light()) << endl;
this_thread::sleep_for(1s);
cout << fmt::format(
"Lights: {}", drone.
get_light()) << endl;
this_thread::sleep_for(100ms);
}
float get_light() const
Get the current light intensity.
void set_light(float intensity)
Sets intensity of the drone lights.
Class representing a drone.
Definition PioneerDrone.hpp:31