#include <math.h>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include "../include/wrapper.h"
#include "../include/robot.h"
#include "../include/constants.h"
#include "../include/types.h"
#include "../include/util.h"
#include "../include/platform.h"
#include "../include/cmd.h"
#include "../include/crc.h"
#include "../include/vars.h"
#include "../include/global.h"
Defines | |
#define | ROUND(x) (float)((int)(x*100))/100.0 |
#define | DEG(x) x*180.0/M_PI |
#define | _ASK_TO_WRITE |
#define | _SHOW_WRITE |
#define | _SHOW_READ |
#define | SHOWREADERROR |
#define | _SHOWCURRENTANGLEERROR |
#define | _SHOWTARGETANGLEERROR |
#define | TESTANGLE(i) ; |
#define | TESTANGLE2(i) |
Variables | |
const char * | robotNames [ROBOT_COUNT] |
#define _ASK_TO_WRITE |
#define _SHOW_READ |
#define _SHOW_WRITE |
#define _SHOWCURRENTANGLEERROR |
#define _SHOWTARGETANGLEERROR |
#define DEG | ( | x | ) | x*180.0/M_PI |
#define ROUND | ( | x | ) | (float)((int)(x*100))/100.0 |
#define SHOWREADERROR |
#define TESTANGLE | ( | i | ) | ; |
#define TESTANGLE2 | ( | i | ) |
Value:
if (angles[5-i]*180.0/M_PI < anglesMinMaxStart[8+2*i][0]) \ angles[5-i] += M_PI; \ else \ if (angles[5-i]*180.0/M_PI > anglesMinMaxStart[8+2*i][1]) \ angles[5-i] -= M_PI;
const char* robotNames[ROBOT_COUNT] |