バイナリフォーマットでデータ送信します#5
Merged
Merged
Conversation
Collaborator
|
@mmaakkyyii |
Contributor
Author
|
手元のvscodeで開いたとき勝手に成形されてそうでした。何か直した方がいいでしょうか? |
Collaborator
|
arduinoのデフォルトでフォーマットしてもらえますか? https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-customize-auto-formatter/ |
Contributor
Author
|
auto formatかけました |
Collaborator
|
@mmaakkyyii |
Comment on lines
+480
to
+485
| const unsigned char accScale[4] = { 0x04, 0x00, 0x00, 0x00 }; | ||
| result = writeDMPmems(ACC_SCALE, 4, &accScale[0]); | ||
| if (result > worstResult) | ||
| worstResult = result; // Write accScale to ACC_SCALE DMP register | ||
| // In order to output hardware unit data as configured FSR write 0x00040000 when FSR is 4g | ||
| const unsigned char accScale2[4] = {0x00, 0x04, 0x00, 0x00}; | ||
| result = writeDMPmems(ACC_SCALE2, 4, &accScale2[0]); if (result > worstResult) worstResult = result; // Write accScale2 to ACC_SCALE2 DMP register | ||
| const unsigned char accScale2[4] = { 0x00, 0x04, 0x00, 0x00 }; |
Contributor
There was a problem hiding this comment.
myFSS.a = gpm16;に変更してたのでこちらの加速度スケールのパラメータも変更が必要そうです
Contributor
|
ファームウェア修正前後でIMUを縦に傾けた状態から水平にする動きをして姿勢をみましたが 修正前 |
Contributor
Author
|
今確認中なんですが、加速度のレンジおかしくなってますね |
Contributor
|
加速度の値が大きい問題は手元でも確認できました 変更箇所 |
Contributor
|
4g IMG_4091.mov |
Contributor
Author
|
内部変数を整数型で扱うためにスケールしてそれを元に戻すためにACC_Scale2は逆数をとる必要あるみたいでした。 |
Co-authored-by: hatakeyamayuta <hatahata4@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
Does this close any currently open issues?
#4
How has this been tested?
実機動作確認済みです
Any other comments?
Checklists