Python Forum
Taking serial data to perform key.press functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Taking serial data to perform key.press functions
#2
Please put your code inside python tags.

Not sure what is happening without any output shown, but I find it odd that you're immediately converting the read data to radians, then you convert back to degrees to print. Any reason why the double conversion?

Also, you are printing the value in degrees, but you are comparing the value in radians. If you have a 10 degree pitch, it will print bigger than 5, but it is much less than 5 radians so won't trigger.
Reply


Messages In This Thread
RE: Taking serial data to perform key.press functions - by bowlofred - Sep-04-2020, 10:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 4,164 Aug-24-2023, 07:56 AM
Last Post: gowb0w
  Help reading data from serial RS485 korenron 8 14,047 Nov-14-2021, 06:49 AM
Last Post: korenron
  get data from 2 async functions korenron 0 1,231 Sep-22-2021, 08:39 AM
Last Post: korenron
  Reading Serial data Moris526 6 5,428 Dec-26-2020, 04:04 PM
Last Post: Moris526
  Put Serial data to list PA3040 5 6,501 Sep-01-2020, 02:34 PM
Last Post: deanhystad
  Reading serial data and saving to a file Mohan 1 7,562 May-25-2020, 04:18 PM
Last Post: pyzyx3qwerty
  Read Data from Serial Port PA3040 3 3,202 Feb-16-2020, 04:54 AM
Last Post: PA3040
  Reading data from serial port as byte array vlad93 1 12,092 May-18-2019, 05:26 AM
Last Post: heiner55
  How can I only receive data from selected serial numbers MasterCATZ 7 3,558 Apr-20-2019, 08:35 AM
Last Post: MasterCATZ
  Receive Serial Data and store in different Variables in Python jenkins43 5 5,629 Dec-28-2018, 01:33 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020