Library for receiving 2021NHK Bteam Controller
Dependents: 2021NHK_Bcon_RX 2021NHK_B_syudo 2021NHK_B_main 2022kouroboBv2 ... more
Revision 2:e97f32749217, committed 2021-10-24
- Comitter:
- piroro4560
- Date:
- Sun Oct 24 14:26:12 2021 +0000
- Parent:
- 1:a8f5f13b0840
- Commit message:
- main
Changed in this revision
controller.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r a8f5f13b0840 -r e97f32749217 controller.h --- a/controller.h Sat Oct 16 13:41:01 2021 +0000 +++ b/controller.h Sun Oct 24 14:26:12 2021 +0000 @@ -58,6 +58,7 @@ int16_t getStick(uint8_t n); //! スティックの値を返す。中心を0,範囲は-128 ~ 128とする。 bool status; //! (TIMEOUT_COUNT * 0.1)秒間通信が来ていないと0 + uint8_t sum; //! BusInの値を格納 private : @@ -69,7 +70,6 @@ uint8_t bufindex; //! buffer の添え字変数 uint8_t retindex; //! retdata の添え字変数 uint8_t timeout; //! 0.1秒間通信が成功していないと1増える - uint8_t sum; //! BusInの値を格納 uint8_t stick[4]; //! スティックの値を格納 };