Logo
Explore Help
Register Sign In
sadmen
/
jyoung
mirror of https://github.com/jyoung8607/openpilot.git
1
0
Fork
You've already forked jyoung
0
Code Issues Packages Projects Releases Wiki Activity
open source driving agent
4132 Commits
103 Branches
34 Tags
1.6 GiB
Tree: b8a4adfb2f
jyoung/selfdrive/sensord/sensors/file_sensor.h

19 lines
355 B
Raw Normal View History Unescape Escape

Tici light sensor (#2150) * more generic sensor base class * add file sensor * light sensor working * correct sensor type
5 years ago
#pragma once
#include <fstream>
#include <string>
#include "cereal/gen/cpp/log.capnp.h"
Cleanup selfdrive/ includes (#20822) * cleanup include path * continue * format includes * fix testraw.cc * remove include path from SConstruct * regroup * rebase master * almost done * apply review * rename FileReader.xx to filereader.xx * rename Unlogger.x->unlogger.x * rename FrameReader.xx -> framereader.xx * apply reviews * ui.h * continue * fix framebuffer.cc build error:mv util.h up * full path to msm_media_info * fix qcom2 camerad Co-authored-by: Comma Device <device@comma.ai>
4 years ago
#include "selfdrive/sensord/sensors/sensor.h"
Tici light sensor (#2150) * more generic sensor base class * add file sensor * light sensor working * correct sensor type
5 years ago
class FileSensor : public Sensor {
protected:
std::ifstream file;
public:
FileSensor(std::string filename);
~FileSensor();
int init();
virtual void get_event(cereal::SensorEventData::Builder &event) = 0;
};
Powered by Gitea Version: 1.17.1 Page: 198ms Template : 2ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website