PD -“hid” controller / circular xy edge re-calibration

Recalculates joystick position – it takes the clipped square positions and moves them to the actual physical position of plastic joystick – which is off of the sensor most of the time with clipped numbers, on the circular plastic edge rim.
If your joystick doesnt have rounded sensor corners, caused by passing the sensor range in all directions and comes out totally square, you would put bounding radius equal /zero difference.(corner program isnt needed.) If the corners are rounded you use the radius bounding min/moses object to tell the program when to use the corner calculation, lower than the x and y clipping numbers the point doesnt reach the corner of the square. ( arc clipped area near corners ). So the xy positions in the corners turn on after passing the minimum bounding radius – and are then scaled to the new radius. The joystick hits the plastic in the corners sometimes instead of passing the x or y bounding numbers. If the joystick uses the plastic as the bounding line then that would be your actual target radius. and then your 4 part circle system does not join together and needs a special corner program. so you say that the joystick has approached the plastic distance near the corner. and then passes the decided minimum radius line for corner bounding. which you use to turn on the corner program. This then makes the radius the same as the 4 major arc sections and smooth. It scales the rough bumpy lengths near the corner on the plastic and flattens it to the radius length and makes it a smooth curve section matching the main sections. it also doesnt turn on if its being clipped already. which means its in the 4 sections of the main circle, top bottom and sides. Im also finding that some of the joysticks are crooked and then you get 3 or 4 diffferent radius because its seat is tilted. the factory might have done something else where the plastic clips the entire sensor range and then you would get a circle. but the plastic is not really smooth enough.

Leave a Reply

  • Platform:
  • Category: Game Other Utility
  • Revision: 0.1
  • License: Academic Free License v3.0
  • Modified: 1 month ago
  • Views: 72
    Likes: 0
    Downloads: 5
Download
Chat