Open sug1chan opened 2 days ago
以下コメントしていきます。
https://github.com/sug1chan/ARC2024/blob/6d237301667b874dad2f39faf6785798ceef868b/source/arduino/main/operate.h#L16
値が仕様と異なります。
RIGHT_NORMAL -> 0010 = 2U RIGHT_REVERSE -> 0001 = 1U LEFT_NORMAL -> 1000 = 8U LEFT_REVERSE -> 0100 = 4U
int 型をすべて int32_t 型に変更してください。 int32_t -> int に暗黙のキャストをして値が 0 になっているように見えてうまく動作しません。
修正終わりました。
以下コメントしていきます。