dragonpilot - 基於 openpilot 的開源駕駛輔助系統
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <fstream>
|
|
|
|
#include "cereal/gen/cpp/log.capnp.h"
|
|
|
|
|
|
|
|
// no-op base hw class
|
|
|
|
class HardwareNone {
|
|
|
|
public:
|
|
|
|
static constexpr float MAX_VOLUME = 0;
|
|
|
|
static constexpr float MIN_VOLUME = 0;
|
|
|
|
static const cereal::InitData::DeviceType device_type = cereal::InitData::DeviceType::PC;
|
|
|
|
|
|
|
|
static std::string get_os_version() { return "openpilot for PC"; };
|
|
|
|
|
|
|
|
static void reboot() {};
|
|
|
|
static void poweroff() {};
|
|
|
|
static void set_brightness(int percent) {};
|
|
|
|
static void set_display_power(bool on) {};
|
|
|
|
|
|
|
|
static bool get_ssh_enabled() { return false; };
|
|
|
|
static void set_ssh_enabled(bool enabled) {};
|
|
|
|
};
|