C# Класс 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.
Наследование: DisposableObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ChannelsChanged EventHandler

Открытые методы

Метод Описание
NavioRCInputDevice ( ) : System

Creates and initializes an instance.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Frees resources owned by this instance.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() защищенный Метод

Frees resources owned by this instance.
protected Dispose ( bool disposing ) : void
disposing bool /// True when called via , false when called from the finalizer. ///
Результат void

NavioRCInputDevice() публичный Метод

Creates and initializes an instance.
public NavioRCInputDevice ( ) : System
Результат System

Описание свойств

ChannelsChanged публичное свойство

Fired after a new frame of data has been received and decoded into Channels.
public EventHandler ChannelsChanged
Результат EventHandler