SPQR-Team1-2020/include/status_vector.h

19 lines
484 B
C
Raw Normal View History

2020-02-05 18:57:11 +01:00
#pragma once
#define dim 20
#include <Arduino.h>
typedef struct input{
int IMUAngle, USfr, USsx, USdx, USrr, BT;
byte ballByte, cameraByte, lineByte;
bool SW_DX, SW_SX;
}input;
typedef struct data{
int IMUAngle, ballAngle, ballDistance, cameraAngle, cameraDistance,
speed, tilt, dir, USfr, USsx, USdx, USrr, lineOutDir, matePos, role;
byte xb, yb, xy, yy, lineSeen, lineActive;
bool mate, ATKgoal, DEFgoal;
}data;
input inputs[dim];
data datas[dim];