dir change #40
-
how can i change sensor direction? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @maxim-sedilec Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to build encoder with direction change, I try AS5600 and this have a hardware pin for DIR , but only 12bits resolution
I’m not a(good) programmer, I don’t know if this syntaxes is correct
settings1.data.values.UVW_ABI = 1;
settings1.data.values.DIR = 1;
//
as5047p.write_SETTINGS1(settings1);
exit status 1
cannot convert 'AS5047P_Types::SETTINGS1_t' to 'const AS5047P_Types::SETTINGS1_t*'
thanks!
From: Jonas Merkle [JJM] ***@***.***
Sent: Tuesday, August 23, 2022 5:54 PM
To: jonas-merkle/AS5047P
Cc: maxim-sedilec; Mention
Subject: Re: [jonas-merkle/AS5047P] dir change (Discussion #40)
Hey @maxim-sedilec <https://github.com/maxim-sedilec>
I'm a bit confused what you mean by changing the sensor direction. Could you please describe your problem in more detail? Maybe I can help you then. 😉
Best regards
Jonas
—
Reply to this email directly, view it on GitHub <#40 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ARJ5CZGCRSVM6PQP4MYUHUDV2TXYFANCNFSM56IA6XYA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ARJ5CZGWTQYLMNAFJHFUAULV2TXYFA5CNFSM56IA6XYKYY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAA2MHXI.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Sorry for answering your question so late. Best regards |
Beta Was this translation helpful? Give feedback.
Hi @maxim-sedilec
Sorry for answering your question so late.
To fix your compiler error you just have to replace the line
as5047p.write_SETTINGS1(settings1);
of your code with the following one:as5047p.write_SETTINGS1(&settings1);
It's mostly similar to your code just the "&" was added.
Best regards
Jonas