Struct Esc
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
MinUsushortThe pulse width at full reverse, in microseconds.
NeutralUsushortThe pulse width at rest, in microseconds.
MaxUsushortThe 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
MaxUs
The pulse width at full forward, in microseconds.
public ushort MaxUs { get; init; }
Property Value
MinUs
The pulse width at full reverse, in microseconds.
public ushort MinUs { get; init; }
Property Value
NeutralUs
The pulse width at rest, in microseconds.
public ushort NeutralUs { get; init; }
Property Value
Methods
Pulse(float)
Returns the pulse width for a throttle.
public ushort Pulse(float throttle)
Parameters
throttlefloatThe 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.