I don't believe you can zero the count. Why do you need to do this? Maybe we can help you more if we know the application.
Regard,
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I would love to change the world, but they won't give me the source code
People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.
I spent a minute looking at my own code by accident. I was thinking "What the heck is this guy doing?"
I am keeping track of a position and would like to zero the position in another spot. I am connecting the encoders to a table and would like to go to a point and zero so that I can have a new reference point.
I guess a reset of the propeller would work just as well but that seems sort of radical.
I need to display zero on my monitor when I hit the zero button. My explanation is probably not too good. I start out turning the "box" on and my position displays on the VGA monitor. I then move the table a few inches, hit the "zero" button and I want the display to display "0". I guess I could just subtract the current reading. that would give me zero....I think.
The positions are held in hub ram and you pass an address to the positions when you start the cog, that means you can use the address to set the positions to zero.
Comments
Regard,
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I would love to change the world, but they won't give me the source code
People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.
I spent a minute looking at my own code by accident. I was thinking "What the heck is this guy doing?"
I guess a reset of the propeller would work just as well but that seems sort of radical.
Thanks!
Thanks for your help!
Graham