-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test joint encoder #4
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,20 @@ | |||
#ifndef AS5600_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this your file or some official library? If your, can you please add extra comment what "AS5600" is? I guess some hall sensor(?) and the class provides info about conversion to degrees? I would maybe mention it with angle() function too as other may expect radians ;). Thanks
*/ | ||
|
||
/* | ||
bool cap_ISR_cb(mcpwm_unit_t mcpwm, mcpwm_capture_channel_id_t cap_channel, const cap_event_data_t *edata,void *user_data){ //this function need to be in that format to be recognized as cap_isr_cb_t type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this code commented out?
int z = as5600.angle(); | ||
Serial.printf("Width: %5d Angle: %3d.%02d\n\r", x, z/100, abs(z%100)); | ||
delay(100); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add EOLN?
platform = espressif32 | ||
board = esp32doit-devkit-v1 | ||
framework = arduino | ||
upload_port = COM8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like specification of upload_port makes some troubles - in my case I need /dev/ttyUSB0
... but when I used the Communication (?) project this was commented out and autodetect (?) worked fine
In the terminal I see:
I guess the float number is the expected init value, correct? |
p.s. nice :) - I used |
Create code for test joint encoder.
Calibration joint: