Mirror actuator for RT2 lab

Dependencies:   FastPWM

Committer:
altb2
Date:
Wed Apr 28 13:10:16 2021 +0000
Revision:
12:8ea956a5c1d8
Template for students

Who changed what in which revision?

UserRevisionLine numberNew contents of line
altb2 12:8ea956a5c1d8 1 #ifndef DATA_STRUCTS_H_
altb2 12:8ea956a5c1d8 2 #define DATA_STRUCTS_H_
altb2 12:8ea956a5c1d8 3
altb2 12:8ea956a5c1d8 4
altb2 12:8ea956a5c1d8 5 typedef struct{
altb2 12:8ea956a5c1d8 6 float sens_phi[2];
altb2 12:8ea956a5c1d8 7 float est_xy[2];
altb2 12:8ea956a5c1d8 8 float sens_Vphi[2];
altb2 12:8ea956a5c1d8 9 float cntrl_phi_des[2];
altb2 12:8ea956a5c1d8 10 float cntrl_xy_des[2];
altb2 12:8ea956a5c1d8 11 float i_des[2]; // desired currents
altb2 12:8ea956a5c1d8 12 float wMot[4]; // desired speeds (rad/s)
altb2 12:8ea956a5c1d8 13 bool laser_on;
altb2 12:8ea956a5c1d8 14 uint8_t num_it;
altb2 12:8ea956a5c1d8 15 }DATA_Xchange;
altb2 12:8ea956a5c1d8 16 #endif
altb2 12:8ea956a5c1d8 17