Table of Contents

Struct Esc

Namespace
Pamoja.Kit
Assembly
Pamoja.Kit.dll

An electronic speed controller's pulse widths from full reverse to full forward.

public readonly record struct Esc : IEquatable<Esc>
Implements
Inherited Members

Constructors

Esc(ushort, ushort, ushort)

An electronic speed controller's pulse widths from full reverse to full forward.

public Esc(ushort MinUs, ushort NeutralUs, ushort MaxUs)

Parameters

MinUs ushort

The pulse width at full reverse, in microseconds.

NeutralUs ushort

The pulse width at rest, in microseconds.

MaxUs ushort

The pulse width at full forward, in microseconds.

Properties

Bidirectional

Gets the common reversible controller: 1000, 1500, and 2000 microseconds.

public static Esc Bidirectional { get; }

Property Value

Esc

MaxUs

The pulse width at full forward, in microseconds.

public ushort MaxUs { get; init; }

Property Value

ushort

MinUs

The pulse width at full reverse, in microseconds.

public ushort MinUs { get; init; }

Property Value

ushort

NeutralUs

The pulse width at rest, in microseconds.

public ushort NeutralUs { get; init; }

Property Value

ushort

Methods

Pulse(float)

Returns the pulse width for a throttle.

public ushort Pulse(float throttle)

Parameters

throttle float

The demand from -1, full reverse, to 1, full forward, held to that range.

Returns

ushort

The pulse width in microseconds, or the neutral one for a throttle that is not a number.