This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
Add an AdiServo
struct
#89
Labels
scope:adi
Updates ADI support
semver:minor
Adds functionality in a backward compatible manner
type:enhancement
New feature or request
What's the motivation for this feature?
The PROS kernel currently has no support for legacy EDR servos. Servos work a little different from
AdiMotor
s in that they can only be commanded to spin to a specific absolute position. The API isn't exposed by PROS, but we could probably support it through theE_ADI_LEGACY_SERVO
config type and usingext_adi_port_set_value
.Describe the solution you'd like
Support legacy servos through an
AdiServo
struct.Describe the drawbacks, if any
Unfortunately, the unit system that this version of
set_value
works in is an undocumented aspect of the SDK. It isn't clear whatext_adi_port_set_value
expects as a value when configured as a servo. We might be able to figure it out by looking at vexcode's servo class.Describe the alternative solutions, if any
N/A
Additional context
https://api.vexcode.cloud/v5/class/classvex_1_1servo
https://github.com/purduesigbots/pros/blob/1e7513d4f110d2eac625b6300dbbb8c086ab6c0c/include/pros/adi.h#L62
The text was updated successfully, but these errors were encountered: