libstp
Robotics library for Botball
Loading...
Searching...
No Matches
IRSensorCalibration.hpp
Go to the documentation of this file.
1//
2// Created by eternalRose on 12/6/25.
3//
4
5#ifndef VERSION_IRSENSORCALIBRATION_HPP
6#define VERSION_IRSENSORCALIBRATION_HPP
7#include <string>
8#include <vector>
9
10#include "IRSensor.hpp"
11
12#endif //VERSION_IRSENSORCALIBRATION_HPP
13
14namespace libstp::sensors::ir {
16 public:
19 static std::vector<std::vector<float>> collectValues(const std::vector<IRSensor*>& sensors, float durationSeconds = 5.0f);
20
22 static bool calibrateSensors(const std::vector<IRSensor*>& sensors, float durationSeconds = 5.0f,
23 bool usePre = false, const std::string& set_name = "default");
24 };
25}
static bool calibrateSensors(const std::vector< IRSensor * > &sensors, float durationSeconds=5.0f, bool usePre=false, const std::string &set_name="default")
static std::vector< std::vector< float > > collectValues(const std::vector< IRSensor * > &sensors, float durationSeconds=5.0f)