#ifndef __WARN_H
#define __WARN_H

#include "weight_read.h"

#define RUNNING_THRESHOLD_VALUE 10.0f
#define RATE_THRESHOLD_VALUE 10.0f

#define M_PI_F 3.14159265358979f
#define M_2PI_F (2 * M_PI_F)

enum workstatus
{
    HAVENOTCHECKED = 0x0,
    NORMAL = 0x01,
    GOWRONG = 0x02
};

enum alarmstatus
{
    NO_ERR = 0X00,
    EMPTY_ERR = 0x01,
    DECLINE_ERR = 0x02,
    DYNAMICSTATE = 0x04,
    ANOMALY = 0x08
};

void Get_Sensor_Status(void);

#endif
