mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
16 lines
500 B
C++
16 lines
500 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "system/hardware/base.h"
|
|
|
|
class HardwarePC : public HardwareNone {
|
|
public:
|
|
static std::string get_os_version() { return "openpilot for PC"; }
|
|
static std::string get_name() { return "pc"; }
|
|
static cereal::InitData::DeviceType get_device_type() { return cereal::InitData::DeviceType::PC; }
|
|
static bool PC() { return true; }
|
|
static bool TICI() { return util::getenv("TICI", 0) == 1; }
|
|
static bool AGNOS() { return util::getenv("TICI", 0) == 1; }
|
|
};
|