openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.

26 lines
605 B

4 years ago
#pragma once
#include <cstdlib>
#include <fstream>
4 years ago
// no-op base hw class
class HardwareNone {
public:
static constexpr float MAX_VOLUME = 0.7;
static constexpr float MIN_VOLUME = 0.2;
4 years ago
static std::string get_os_version() { return ""; }
4 years ago
static void reboot() {}
static void poweroff() {}
static void set_brightness(int percent) {}
static void set_display_power(bool on) {}
4 years ago
static bool get_ssh_enabled() { return false; }
static void set_ssh_enabled(bool enabled) {}
static bool PC() { return false; }
static bool EON() { return false; }
static bool TICI() { return false; }
4 years ago
};