stuff

Dependencies:   mbed QEI BNO055 MBed_Adafruit-GPS-Library

Embed: (wiki syntax)

« Back to documentation index

Spektrum Class Reference

Spektrum Class Reference

Spektrum receiver object for connecting to eg SPM9745 receiver. More...

#include <Spektrum.h>

Public Member Functions

 Spektrum (PinName tx, PinName rx)
 Spektrum is used for a working connection to a Spektrum Satellite receiver.
 ~Spektrum ()
 Destructor for Spektrum object.

Data Fields

unsigned int fades
 Number of fades (failed packets) from receiver.
unsigned int system
 Tells if system is in DSMX 11ms or 22ms for example.
unsigned int channel [SPEKTRUM_CHANNELS]
 Contains 0-2048 values for all channels 0-15.
unsigned int pulsewidth [SPEKTRUM_CHANNELS]
 Contains approx 900-2100us pulsewidths corresponding to chan 0-15.
bool valid
 If true, data is value.
unsigned int period_ms
 11 or 22 ms

Detailed Description

Spektrum receiver object for connecting to eg SPM9745 receiver.

Definition at line 50 of file Spektrum.h.


Constructor & Destructor Documentation

Spektrum ( PinName  tx,
PinName  rx 
)

Spektrum is used for a working connection to a Spektrum Satellite receiver.

Parameters:
txorange wire, 3.3V supply pin (should be held high normally)
rxgray wire, rx pin from the receiver The black wire should be connected to ground. The receiver should first be bound using a BindPlug object.

Definition at line 23 of file Spektrum.cpp.

~Spektrum (  )

Destructor for Spektrum object.

Definition at line 48 of file Spektrum.cpp.


Field Documentation

unsigned int channel[SPEKTRUM_CHANNELS]

Contains 0-2048 values for all channels 0-15.

Definition at line 60 of file Spektrum.h.

unsigned int fades

Number of fades (failed packets) from receiver.

Definition at line 54 of file Spektrum.h.

unsigned int period_ms

11 or 22 ms

Definition at line 69 of file Spektrum.h.

unsigned int pulsewidth[SPEKTRUM_CHANNELS]

Contains approx 900-2100us pulsewidths corresponding to chan 0-15.

Definition at line 63 of file Spektrum.h.

unsigned int system

Tells if system is in DSMX 11ms or 22ms for example.

Definition at line 57 of file Spektrum.h.

bool valid

If true, data is value.

Definition at line 66 of file Spektrum.h.