#ifndef _WIFIBOTSM_INFO_H
#define _WIFIBOTSM_INFO_H

#define WIFIBOT_BUF_SIZE sizeof(WifibotLibObjects)
#define WIFIBOT_SM_NAME "WifibotSharedMemoryFile"

#define NO_VALID_FRAME -1
#define VALID_FRAME_OK 1

#ifndef _WIFIBOT_H
typedef struct wifibot_data_t
{
	int batVoltage;
	int speedFrontLeft;
	int speedRearLeft;
	int speedFrontRight;
	int speedRearRight;
	int irLeft;
	int	irRight;
	int irLeft2;
	int	irRight2;
	long odometryLeft;
	long odometryRight;
	int leftSpeed;
	int rightSpeed;
} wifibot_data;

#endif
//-------------------------------------

typedef struct WifibotLibObjects_t
{
	bool is_wifibot_connected;
	unsigned long id;
	timeval t;
	double sec;
	wifibot_data data;
} WifibotLibObjects;

#endif