Commit e3587cc9 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Add getMaxCommandFrequency

parent 210738dd
......@@ -37,6 +37,7 @@ static std::shared_ptr<System> msystem;
static auto prom = std::promise<std::shared_ptr<System>>{};
static std::future<std::shared_ptr<System>> fut;
const int MAX_COMMAND_FREQUENCY = 5;
static const float DEFAULT_RADIUS = 100;
static const float DEFAULT_OVERRIDE_ALTITUDE = 30;
static const float EARTH_RADIUS = 6371000;
......@@ -437,6 +438,10 @@ float getClimbRate(void) {
return telemetry->fixedwing_metrics().climb_rate_m_s;
}
int getMaxCommandFrequency(void) {
return MAX_COMMAND_FREQUENCY;
}
int gpsIsOk(void) {
Telemetry::FixType fixType = telemetry->gps_info().fix_type;
return (fixType != Telemetry::FixType::NoGps) && (fixType != Telemetry::FixType::NoFix);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment