status vector c:
parent
c3ebf4913f
commit
3c09f031f1
|
@ -0,0 +1,19 @@
|
|||
#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];
|
|
@ -0,0 +1,7 @@
|
|||
#include <status_vector.h>
|
||||
void initStructs(){
|
||||
for(int i=0; i>=dim; i++){
|
||||
inputs[i] = input();
|
||||
datas[i] = data();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue