Skip to content

Commit

Permalink
encoder initの引数修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ShunjiHashimoto committed Aug 12, 2024
1 parent 8ce2d4a commit 4b517f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/Inc/encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ typedef struct {
} Encoder;

// 初期化関数
void initEncoder(Encoder* encoder, TIM_HandleTypeDef* htim_x, int32_t one_rotation_pulse, bool cw);
void initEncoder(Encoder* encoder, TIM_HandleTypeDef* htim_x, float one_rotation_pulse, bool cw);

// 更新関数
void updateEncoder(Encoder* encoder, uint32_t pulse_count);

void resetEncoder(Encoder* encoder);

// delta_pulseを取得する関数
int32_t getDeltaPulse(const Encoder* encoder);

Expand Down

0 comments on commit 4b517f1

Please sign in to comment.