Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RCin.h
- Committer:
- altb
- Date:
- 2018-10-17
- Revision:
- 4:288253c4da29
- Child:
- 5:69857f8b6931
File content as of revision 4:288253c4da29:
#include "LinearCharacteristics.h"
#include "mbed.h"
#include "define_constants.h"
class RCin {
public:
RCin(PinName pin);
void fall_edge(void);
void rise_edge(void);
bool isAlive(void);
uint8_t map_CH5_2_Flightmode(uint16_t);
uint8_t get_flightmode(void);
float PM1[15];
LinearCharacteristics CH1_2_PM1;
LinearCharacteristics CH2_2_PM1;
LinearCharacteristics CH3_2_PM1;
LinearCharacteristics CH4_2_PM1;
void map_Channels(void);
uint16_t pwms[255];
uint16_t test_pwms[200][12];
uint16_t cou;
    
private:
    PinName pin;
    InterruptIn pwm1;
    Timer loc_ti;
    uint8_t chnr;
    uint8_t old_FM;
    
};