Error in when calli...
 
Notifications
Clear all

[Solved] Error in when calling set_direction() or set_speed_reference()

2 Posts
2 Users
2 Likes
260 Views
Forum 1
(@unolittlebird)
Trusted Member
Joined: 10 months ago
Posts: 63
Topic starter  

Hi

I am still working on my application including a linear actuator. In short, I want to move the linear actuator outwards or inwards based on a sensor input. This I am doing in a loop where I am regularly updating the speed and direction based on the new sensor data.

The problem is that the program sometimes freezes and this always happens with an error message down to the SOLO. I encountered the following error now a few times:

^CTraceback (most recent call last):
File "tilt.py", line 222, in <module>
tilt_back()
File "tilt.py", line 207, in tilt_back
__solo_driver.set_direction(1) # direction
File "/home/pi/.local/lib/python3.7/site-packages/SoloPy/solo_motor_controller.py", line 182, in set_direction
return self.__exec_cmd(cmd)
File "/home/pi/.local/lib/python3.7/site-packages/SoloPy/solo_motor_controller.py", line 25, in __exec_cmd
while ser.in_waiting:
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 467, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
KeyboardInterrupt

Sometimes this error happens on __solo_driver.set_speed_reference() and it seems to me that there is a problem in reading or writing to the device.

I am glad for any help.

Kind regards,

unolittlebird


   
SOLO Team reacted
Quote
SOLO Team
(@milad)
Illustrious Member Admin
Joined: 3 years ago
Posts: 427
 

Hi @unolittlebird,

This problem is now being shared with the software team, they are working on it, they will get in touch with you here once they have some notes or solutions.

Regards
Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


   
ReplyQuote
Share: