44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
/*
|
|
* @Author: ilikara 3435193369@qq.com
|
|
* @Date: 2024-10-10 08:28:56
|
|
* @LastEditors: ilikara 3435193369@qq.com
|
|
* @LastEditTime: 2025-01-07 09:35:04
|
|
* @FilePath: /smartcar/lib/camera.h
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
#ifndef CAMERA_H_
|
|
#define CAMERA_H_
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <sstream>
|
|
#include <iomanip>
|
|
#include <mutex>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/ioctl.h>
|
|
#include <linux/fb.h>
|
|
#include <algorithm>
|
|
#include <chrono>
|
|
|
|
#include "image_cv.h"
|
|
#include "PIDController.h"
|
|
#include "PwmController.h"
|
|
#include "global.h"
|
|
#include "frame_buffer.h"
|
|
#include "serial.h"
|
|
|
|
int CameraInit(uint8_t camera_id, double dest_fps, int width, int height);
|
|
int CameraHandler(void);
|
|
void streamCapture(void);
|
|
void cameraDeInit(void);
|
|
|
|
extern bool streamCaptureRunning;
|
|
|
|
extern double kp;
|
|
extern double ki;
|
|
extern double kd;
|
|
|
|
#endif |