.png?part=0.1&view=1)
.png?part=0.2&view=1)


--
You received this message because you are subscribed to a topic in the Google Groups "pyControl" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pycontrol/hkhFBrc9GVM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pycontrol+...@googlegroups.com.
To post to this group, send email to pyco...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pycontrol/3ca096b9-b870-4606-b923-92e3444a6d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Tom,I think this works better (please see bellow)Previous device version + previous test:The new one you just sent:Do you think it's good ?I think we got how this works but if the one puts some displacement onto the joystick to beginning with this will gives a wrong 0 value. Is it your suggestion to use the IR beam to define this 0 value? But if so why use this version of the device that cannot output velocity to use the I_output to use the IR beam instead of just adding another board that reads IR beams ? I feel like I'm missing something.Thank you for being so fast at implementing this. It looks way better =)
To unsubscribe from this group and all its topics, send an email to pycontrol+unsubscribe@googlegroups.com.
To post to this group, send email to pyco...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pycontrol/3ca096b9-b870-4606-b923-92e3444a6d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

That looks much better!The way the Position_encoder class is currently setup the position the encoder is in when the Position_encoder is instantiated is defined as 0. This will happen when you load the task, so as long as you make sure the joystick is in the neutral position then you should be OK right?Also, I have a couple of questions.Did you check at what joystick position the I pulse is generated? Ideally you should make sure this position is near to the neutral position of the joystick to ensure that it is crossed regularly.In addition to adding support for the I input restting the position, I also removed code that was not needed for this application, making the function executed each time a sample is read simpler. I would be interested to know which of these changes has caused the big reduction in drift. To test this, please could you modify the joystick_test_II task so that rather than saying I_pin='X12' when the encoder is instantiated it says I_pin=None. This will stop it using the I pulses to reset the position. Can you test it like this and let me know how it behaves?
On Wednesday, 20 March 2019 19:09:52 UTC, Inês Vaz wrote:
Hi Tom,I think this works better (please see bellow)Previous device version + previous test:The new one you just sent:Do you think it's good ?I think we got how this works but if the one puts some displacement onto the joystick to beginning with this will gives a wrong 0 value. Is it your suggestion to use the IR beam to define this 0 value? But if so why use this version of the device that cannot output velocity to use the I_output to use the IR beam instead of just adding another board that reads IR beams ? I feel like I'm missing something.Thank you for being so fast at implementing this. It looks way better =)
To unsubscribe from this group and all its topics, send an email to pycontrol+...@googlegroups.com.
To post to this group, send email to pyco...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pycontrol/3ca096b9-b870-4606-b923-92e3444a6d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Inês Rodrigues-VazPhD studentNeurobiology of Action Lab
Champalimaud Foundation
Av. de Brasilia, Doca de Pedrouços
1400-038 Lisboa, Portugal
--
You received this message because you are subscribed to a topic in the Google Groups "pyControl" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pycontrol/hkhFBrc9GVM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pycontrol+...@googlegroups.com.
To post to this group, send email to pyco...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pycontrol/c4795f92-b5c4-47d4-a824-4f2a6255f1b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Tanya,
You need to import the pyControl data import module that is the file data_import.py in the folder pyControl/tools. Put this file somewhere on the Python path (i normally put a copy of it in the same folder the rest of my analysis code is in for that experiment), then you can import the module with:
import data_import as di
You can then import an analog data file with:
analog_data = di.load_analog_data('path//to//analog_data_file.pca')
best,
Thomas
Hello Thomas,I hope all is well. Just spoke with Filipe and Goncalo about the rotatry encoder drift issue - they asked if the hardware keeps track of thie position of the incremental encoder in an absolute or differential manner? They said if it is absolute, there should be no drift but if it is differential this might be the issue.