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
Afficher le fichier Open project: emlid/Navio-SDK-Windows-IoT Class Usage Examples

Méthodes publiques

Свойство Type Description
ChannelsChanged EventHandler

Méthodes publiques

Méthode Description
NavioRCInputDevice ( ) : System

Creates and initializes an instance.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Frees resources owned by this instance.

Private Methods

Méthode 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 méthode

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

NavioRCInputDevice() public méthode

Creates and initializes an instance.
public NavioRCInputDevice ( ) : System
Résultat System

Property Details

ChannelsChanged public_oe property

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