tutrc_harurobo_lib
読み取り中…
検索中…
一致する文字列を見つけられません
encoder.hpp
[詳解]
1#pragma once
2
3#include "main.h"
4
5#include <cstdint>
6
7namespace tutrc_harurobo_lib {
8
9class Encoder {
10public:
11 bool init(TIM_HandleTypeDef *htim, uint16_t ppr, float period);
12 void update();
13 float get_rps();
14 float get_rpm();
15 float get_position();
16
17private:
18 TIM_HandleTypeDef *htim_;
19 uint16_t ppr_;
20 float period_;
21
22 int64_t count_ = 0;
23 float rps_;
24 float position_;
25};
26
27} // namespace tutrc_harurobo_lib
Definition encoder.hpp:9
bool init(TIM_HandleTypeDef *htim, uint16_t ppr, float period)
Definition bno055.hpp:10