#define STATUS_UP 1
#define STATUS_DOWN 2
#define STATUS_IDLE 3
#define STATUS_LAND 4

#define UP_LENGTH_UPPER 3000
#define UP_LENGTH_LOWER 1000
#define UP_PEAK_UPPER 2147483392
#define UP_PEAK_LOWER 1000000000
#define UP_VALLEY_UPPER -1000000000
#define UP_VALLEY_LOWER -2147483648

#define DOWN_LENGTH_UPPER 99999
#define DOWN_LENGTH_LOWER 4000
#define DOWN_PEAK_UPPER 700000000
#define DOWN_PEAK_LOWER 300000000
#define DOWN_VALLEY_UPPER -100000000
#define DOWN_VALLEY_LOWER -500000000

#define IDLE_LENGTH_UPPER 3000
#define IDLE_LENGTH_LOWER 1000
#define IDLE_PEAK_UPPER 2147483392
#define IDLE_PEAK_LOWER 1000000000
#define IDLE_VALLEY_UPPER -1000000000
#define IDLE_VALLEY_LOWER -2147483648

#define LAND_LENGTH_UPPER 99999
#define LAND_LENGTH_LOWER 4000
#define LAND_PEAK_UPPER 700000000
#define LAND_PEAK_LOWER 300000000
#define LAND_VALLEY_UPPER -100000000
#define LAND_VALLEY_LOWER -500000000

int matchCommand(int length, int peak, int valley, int landingSwitch);
int checkLength(int length, int landingSwitch);
int checkPeak(int peak, int landingSwitch);
int checkValley(int valley, int landingSwitch);
