Skip to content

Conversation

at-wat
Copy link
Member

@at-wat at-wat commented Sep 2, 2019

fix #66

@at-wat at-wat self-assigned this Sep 2, 2019
{
if (motor[i].enc0_buf[j] != ENC0_BUF_UNKNOWN)
{
sum_enc0 += motor[i].enc0_buf[j];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be angular average

@at-wat
Copy link
Member Author

at-wat commented Sep 3, 2019

[origin calculated from each edge]: average origin
 ... ... ... ... -274 ...: 126
 ... ... ... ... -274 -269: 129
 125 ... ... ... -274 -269: 127
 125 ... ... 132 -274 -269: 129
 125 ... 125 132 -274 -269: 127
 125 ... 125 132 -274 -269: 128
 125 ... 125 132 -274 -269: 127
 125 ... 125 132 -274 -269: 128
 125 ... 125 132 -274 -269: 127
 125 ... 125 132 -274 -269: 127
 125 ... 125 132 -274 -269: 128
 125 ... 125 132 -274 -269: 127
 125 ... 125 132 -274 -269: 128
 125 ... 125 132 -274 -269: 127
 125 132 125 132 -274 -269: 129
 125 132 125 132 -274 -269: 128
 125 132 125 132 -274 -269: 129
 125 132 125 132 -274 -269: 128
 125 132 125 132 -274 -269: 129
 125 132 125 132 -274 -269: 128
 125 132 125 132 -274 -269: 129
 125 132 125 132 -274 -269: 128
 125 132 125 132 -274 -269: 129

@at-wat
Copy link
Member Author

at-wat commented Sep 3, 2019

ENCODER_DENOMINATOR=2

[origin calculated from each edge]: average origin
 ... -84 ... ... ... ... ... ... ... ... ... ...: 316
 ... -84 -92 ... ... ... ... ... ... ... ... ...: 312
 ... -84 -92 -85 ... ... ... ... ... ... ... ...: 313
 ... -84 -92 -85 -90 ... ... ... ... ... ... ...: 312
 ... -84 -92 -85 -90 -85 ... ... ... ... ... ...: 313
 309 -84 -92 -85 -90 -85 ... ... ... ... ... ...: 312
 309 -84 -92 -85 -90 -85 ... 316 ... ... ... ...: 313
 309 -84 -92 -85 -90 -85 ... 316 309 ... ... ...: 312
 309 -84 -92 -85 -90 -85 ... 316 309 316 ... ...: 313
 309 -84 -92 -85 -90 -85 ... 316 309 316 310 ...: 312
 309 -84 -92 -85 -90 -85 ... 316 309 316 310 315: 313
 309 -84 -92 -85 -90 -85 709 316 309 316 310 315: 312
 309 -84 -92 -84 -90 -85 709 316 309 316 310 315: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 315: 312
 309 -84 -92 -84 -90 -85 709 316 309 316 310 315: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 315: 312
 309 -84 -92 -84 -90 -85 709 316 309 316 310 315: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 312
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 312
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 313
 309 -84 -92 -84 -90 -85 709 316 309 316 310 316: 312

@at-wat at-wat changed the title [WIP] Take average of encoder origin for one mechanical revolution Take average of encoder origin for one mechanical revolution Sep 3, 2019
@at-wat at-wat merged commit 3abb771 into master Sep 4, 2019
@at-wat at-wat deleted the take-average-of-abs-angle-detection branch September 4, 2019 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take an average of hall signal absolute angle in one mechanical revolution
1 participant