serilib
読み取り中…
検索中…
一致する文字列を見つけられません
control.h
[詳解]
1
3
4
#pragma once
5
6
#include <stdint.h>
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
13
typedef
struct
{
15
int16_t
lx
;
17
int16_t
ly
;
19
int16_t
rx
;
21
int16_t
ry
;
23
uint8_t
dead_zone
;
24
}
sticks_t
;
25
27
typedef
struct
{
29
SL_FP_T
lx
;
31
SL_FP_T
ly
;
33
SL_FP_T
rx
;
35
SL_FP_T
ry
;
36
}
sticks_nor_t
;
37
43
sticks_nor_t
normalize_sticks
(
sticks_t
sticks);
44
45
#ifdef __cplusplus
46
}
47
#endif
normalize_sticks
sticks_nor_t normalize_sticks(sticks_t sticks)
スティックデータを正規化する。
sticks_nor_t
正規化済みスティックデータ
Definition
control.h:27
sticks_nor_t::ry
SL_FP_T ry
右スティック上下軸(上が正)
Definition
control.h:35
sticks_nor_t::ly
SL_FP_T ly
左スティック上下軸(上が正)
Definition
control.h:31
sticks_nor_t::lx
SL_FP_T lx
左スティック左右軸(右が正)
Definition
control.h:29
sticks_nor_t::rx
SL_FP_T rx
右スティック左右軸(右が正)
Definition
control.h:33
sticks_t
生のスティックデータ
Definition
control.h:13
sticks_t::rx
int16_t rx
右スティック左右軸(右が正)
Definition
control.h:19
sticks_t::lx
int16_t lx
左スティック左右軸(右が正)
Definition
control.h:15
sticks_t::dead_zone
uint8_t dead_zone
デッドゾーン(0-100) [%]
Definition
control.h:23
sticks_t::ly
int16_t ly
左スティック上下軸(上が正)
Definition
control.h:17
sticks_t::ry
int16_t ry
右スティック上下軸(上が正)
Definition
control.h:21
include
seri
control.h
構築:
1.14.0