//Gauges place
//Wheel speeds
#define wheel_rpm_gauge_gain	0.08
//Front left
#define fl_x_gauge				(int)(205/scaling)	
#define fl_y_gauge				(int)(140/scaling)
#define fl_r_gauge				(int)(70/scaling)	
#define fl_offset_gauge			30	//degrees

#define fl_x_text				(int)(195/scaling)	
#define fl_y_text				(int)(170/scaling)

//Front right
#define fr_x_gauge			(int)(773/scaling)	
#define fr_y_gauge			(int)(140/scaling)
#define fr_r_gauge			(int)(70/scaling)	
#define fr_offset_gauge		30	//degrees

#define fr_x_text			(int)(763/scaling)	
#define fr_y_text			(int)(170/scaling)

//Rear left
#define rl_x_gauge				(int)(201/scaling)	
#define rl_y_gauge				(int)(620/scaling)
#define rl_r_gauge				(int)(70/scaling)	
#define rl_offset_gauge			30	//degrees

#define rl_x_text				(int)(191/scaling)	
#define rl_y_text				(int)(650/scaling)

//Rear right
#define rr_x_gauge			(int)(771/scaling)	
#define rr_y_gauge			(int)(620/scaling)
#define rr_r_gauge			(int)(70/scaling)	
#define rr_offset_gauge		30	//degrees

#define rr_x_text			(int)(761/scaling)	
#define rr_y_text			(int)(650/scaling)

//Engine RPM
#define rpm_x_gauge			(int)(655/scaling)	
#define rpm_y_gauge			(int)(318/scaling)
#define rpm_r_gauge			(int)(60/scaling)	
#define rpm_offset_gauge		30	//degrees
#define engine_rpm_gauge_gain	0.035

#define rpm_x_text			(int)(645/scaling)	
#define rpm_y_text			(int)(348/scaling)

//Car Speed
#define speed_x_gauge				(int)(855/scaling)	
#define speed_y_gauge				(int)(318/scaling)
#define speed_r_gauge				(int)(70/scaling)	
#define speed_offset_gauge			30		//degrees
#define defined_wheel_radius		38		//cm
#define speed_gauge_gain			1.01

#define speed_x_text				(int)(845/scaling)	
#define speed_y_text				(int)(348/scaling)

#define polar_x(co_x,radius,phi,offset) (int)(co_x-radius*cos((double)(phi-offset)*PI/180))
#define polar_y(co_y,radius,phi,offset) (int)(co_y-radius*sin((double)(phi-offset)*PI/180))


//----------------------------------------------