Receiver
Initialization
void ReceiverInit(Icu_ChannelType ReceiverIcuChannel, Gpt_ChannelType ReceiverGptChannel, uint16 ChannelMinTicks, uint16 ChannelMedTicks, uint16 ChannelMaxTicks, uint16 OutsideChannelTicks);Getting channel values
int GetReceiverChannel(uint8 Channel);Getting receiver states
enum ReceiverStates GetReceiverState(void);Relevant structures
enum ReceiverStates{
UnSynced, /*this State indicates the program is not synced with the Receiver. Either there is
* no signal from Receiver, or the program is unable to synchronise with it
* (just started program/bad signal/connection lost with remote)*/
Channel1, /*right joystick left/right movement*/
Channel2, /*left joystick up/down movement*/
Channel3, /*right joystick up/down movement*/
Channel4, /*left joystick left/right movement*/
Channel5, /*SWA (leftmost switch with 2 positions)*/
Channel6, /*SWB (left middle switch with 3 positions)*/
Channel7, /*SWC (right middle switch with 3 positions)*/
Channel8, /*SWD (rightmost switch with 2 positions)*/
BetweenChannels /*this State represents the time between two transmissions*/
};Last updated
Was this helpful?