Two improvements to RCServo API

Comments & issues
Post Reply
Rhybot
Phidgeteer!
Posts: 52
Joined: Wed Aug 14, 2019 4:58 pm
Contact:

Two improvements to RCServo API

Post by Rhybot »

Hello Phidgets, I have two requests for improvement in the RC Servo API.

- One can set the min position > max position. When this happens, it breaks the UI slider bar. Does it make sense to allow min position to be set greater than max position?
- When setting target position outside of the range of min/max positions, the details returned refer to the pulse width (instead of position range).

Example:
1. Min position = 0.0°, max position = 270.0°, min pulse width = 500.0, max pulse width = 2500.0
2. Setting target position = 300°
3. Result:

Code: Select all

Phidget22.PhidgetException.PhidgetException: PhidgetException 0x15 (Invalid Argument)
Value must be in range: 500.000000 - 2500.000000.
In my opinion this should have said:

Code: Select all

Phidget22.PhidgetException.PhidgetException: PhidgetException 0x15 (Invalid Argument)
Value must be in range: 0.000000 - 270.000000.
Versions

Code: Select all

Python==3.8.6
Phidget22==1.6.20201024
And RCServo device version 111.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest