C# Class Emlid.WindowsIot.Hardware.Boards.Navio.NavioRCInputDevice

Navio Remote Control input hardware device.
Navio provides RC (receiver) input via a connector on it's servo rail mapped to GPIO pin 4. Navio+ has a logic level converter and you can connect receivers which generate both 3.3V and 5V signals. The older Navio model only has a built-in voltage divider in PPM Input that lowers the voltage level from 5V to 3.3V. So if you connect a 3.3V PPM device (which is rare) to the original Navio, no signal will not be detected.
Inheritance: DisposableObject
ファイルを表示 Open project: emlid/Navio-SDK-Windows-IoT Class Usage Examples

Public Properties

Property Type Description
ChannelsChanged EventHandler

Public Methods

Method Description
NavioRCInputDevice ( ) : System

Creates and initializes an instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Frees resources owned by this instance.

Private Methods

Method Description
OnInputPinValueChanged ( Windows.Devices.Gpio.GpioPin sender, Windows.Devices.Gpio.GpioPinValueChangedEventArgs arguments ) : void

Handles GPIO changes (rising and falling PWM signal), recording them to the decoder queue.

Main hardware routine which triggers the input translation process. This code must run as quickly as possible else we could miss the next event!

Receiver ( ) : void

Waits for decoded frames, updates the Channels property and fires the ChannelsChanged event on a separate thread.

Method Details

Dispose() protected method

Frees resources owned by this instance.
protected Dispose ( bool disposing ) : void
disposing bool /// True when called via , false when called from the finalizer. ///
return void

NavioRCInputDevice() public method

Creates and initializes an instance.
public NavioRCInputDevice ( ) : System
return System

Property Details

ChannelsChanged public_oe property

Fired after a new frame of data has been received and decoded into Channels.
public EventHandler ChannelsChanged
return EventHandler