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