Inductance Testing Code

Dependencies:   mbed

Fork of CurrentModeSine by Austin Brown

structs.h

Committer:
austinbrown124
Date:
2018-10-11
Revision:
1:64b881306f6f
Parent:
0:9edd6ec0f56a

File content as of revision 1:64b881306f6f:

#ifndef STRUCTS_H
#define STRUCTS_H

#include "mbed.h"

    
typedef struct{

    float i_a, i_b, i_c;
    float v_bus;
    float theta_mech, theta_elec, theta_elec_adv;
    float i_d, i_q;
    float v_d, v_q;
    float dtc_u, dtc_v, dtc_w;
    float v_u, v_v, v_w;
    float test_d, test_q;
    float d_int, q_int;
    float i_d_ref, i_q_ref;
    int loop_count;
    int mode;
    } FocStruct;
    

    
    

typedef struct{
    int can_dead_count;
    float throttle_frac;
    int status;
    } CommandStruct;


    
#endif