TeamRobotmad / BadgeBot

Demonstration application for small robot based on EMFCamp 2024 badge with HexDrive Hexpansion and 2 motors.
3 stars 0 forks source link

Servo Support #39

Closed Robotmad closed 2 months ago

Robotmad commented 3 months ago

interface to select servo style output on identified output (1-4): change frequency, specified as period, default 20mS set pulse width by either duration in uS, or set pulse width range float in mS (centred on 1.5mS, e.g. 1.0mS = 1.0 to 2.0, 1.5mS = 0.75 to 2.25mS, 2.0 = 0.5 to 2.5mS) and set pulse width as a fraction of the range -1.0 to 0.0 to +1.0

function to read back if a channel is in use for motor or servo function to read back pulse width range (in mS as float) function to read back frequency (Hz) function to read back period (in mS) function to read back duty cycle ( % for motors), pulse width (in uS) and fraction of range (-1 to 0 to+1)

Robotmad commented 3 months ago

yeh - did it a bit differently.