tutrc_harurobo_lib
読み取り中…
検索中…
一致する文字列を見つけられません
include
tutrc_harurobo_lib
encoder.hpp
[詳解]
1
#pragma once
2
3
#include "main.h"
4
5
#include <cstdint>
6
7
namespace
tutrc_harurobo_lib
{
8
9
class
Encoder
{
10
public
:
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
17
private
:
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
tutrc_harurobo_lib::Encoder
Definition
encoder.hpp:9
tutrc_harurobo_lib::Encoder::init
bool init(TIM_HandleTypeDef *htim, uint16_t ppr, float period)
tutrc_harurobo_lib::Encoder::get_position
float get_position()
tutrc_harurobo_lib::Encoder::update
void update()
tutrc_harurobo_lib::Encoder::get_rpm
float get_rpm()
tutrc_harurobo_lib::Encoder::get_rps
float get_rps()
tutrc_harurobo_lib
Definition
bno055.hpp:10
構築:
1.12.0