pull/36202/head
Adeeb Shihadeh 2 days ago
parent 26f9c0e7d0
commit a169be18d3
  1. 2
      selfdrive/ui/qt/offroad/settings.cc
  2. 3
      system/hardware/base.h
  3. 3
      system/hardware/pc/hardware.h
  4. 3
      system/hardware/tici/hardware.h
  5. 2
      tools/replay/framereader.cc

@ -253,7 +253,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
}); });
addItem(retrainingBtn); addItem(retrainingBtn);
if (Hardware::TICI()) { if (Hardware::IS_TICI()) {
auto regulatoryBtn = new ButtonControl(tr("Regulatory"), tr("VIEW"), ""); auto regulatoryBtn = new ButtonControl(tr("Regulatory"), tr("VIEW"), "");
connect(regulatoryBtn, &ButtonControl::clicked, [=]() { connect(regulatoryBtn, &ButtonControl::clicked, [=]() {
const std::string txt = util::read_file("../assets/offroad/fcc.html"); const std::string txt = util::read_file("../assets/offroad/fcc.html");

@ -32,6 +32,5 @@ public:
static void set_ssh_enabled(bool enabled) {} static void set_ssh_enabled(bool enabled) {}
static bool PC() { return false; } static bool PC() { return false; }
static bool TICI() { return false; } static bool IS_TICI() { return false; }
static bool AGNOS() { return false; }
}; };

@ -10,6 +10,5 @@ public:
static std::string get_name() { return "pc"; } static std::string get_name() { return "pc"; }
static cereal::InitData::DeviceType get_device_type() { return cereal::InitData::DeviceType::PC; } static cereal::InitData::DeviceType get_device_type() { return cereal::InitData::DeviceType::PC; }
static bool PC() { return true; } static bool PC() { return true; }
static bool TICI() { return util::getenv("TICI", 0) == 1; } static bool IS_TICI() { return util::getenv("TICI", 0) == 1; }
static bool AGNOS() { return util::getenv("TICI", 0) == 1; }
}; };

@ -13,8 +13,7 @@
class HardwareTici : public HardwareNone { class HardwareTici : public HardwareNone {
public: public:
static bool TICI() { return true; } static bool IS_TICI() { return true; }
static bool AGNOS() { return true; }
static std::string get_os_version() { static std::string get_os_version() {
return "AGNOS " + util::read_file("/VERSION"); return "AGNOS " + util::read_file("/VERSION");
} }

@ -40,7 +40,7 @@ struct DecoderManager {
std::unique_ptr<VideoDecoder> decoder; std::unique_ptr<VideoDecoder> decoder;
#ifndef __APPLE__ #ifndef __APPLE__
if (Hardware::TICI() && hw_decoder) { if (Hardware::IS_TICI() && hw_decoder) {
decoder = std::make_unique<QcomVideoDecoder>(); decoder = std::make_unique<QcomVideoDecoder>();
} else } else
#endif #endif

Loading…
Cancel
Save