#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(
"Indicators: {}", drone.
get_indicator()) << endl;
{.green = false, .yellow = true, .orange = false, .red = true});
cout << fmt::format(
"Indicators: {}", drone.
get_indicator()) << endl;
this_thread::sleep_for(2s);
{.green = true, .yellow = false, .orange = true, .red = false});
cout << fmt::format(
"Indicators: {}", drone.
get_indicator()) << endl;
this_thread::sleep_for(2s);
cout << fmt::format(
"Indicators: {}", drone.
get_indicator()) << endl;
this_thread::sleep_for(100ms);
}
void set_indicator(blunux::pmu::IndicatorsSetpoint indicators)
Enable/diable the indicators on the light board.
pmu::IndicatorsSetpoint get_indicator() const
Get the indicator status.
Class representing a drone.
Definition PioneerDrone.hpp:31