Skip to content

antenna servo range #41

@SodaBot-Bill

Description

@SodaBot-Bill

the antennas have a movement range of about 30 degrees. to change to 180 degrees modify the antennas.py file in mini_bdx_runtime/mini_bdx_runtime/

change the value to dutycycle function:

def value_to_duty_cycle(v):
pulse_width_ms = 1.5 + (v - .5)*2 # now .5 to 2.5ms was 1ms to 2ms = 1.5 + (v * 0.5)
duty_cycle = int((pulse_width_ms / 20) * 65535)
return min(max(duty_cycle, 1637), 6553) # was 3277, 6553)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions