Prius IPM controller

Dependencies:   mbed

Fork of analoghalls5_5 by N K

includes.h

Committer:
bwang
Date:
2015-03-16
Revision:
35:83cf9564bd0c
Parent:
33:e7b132029bae

File content as of revision 35:83cf9564bd0c:

#ifndef __INCLUDES_H
#define __INCLUDES_H

#include "mbed.h"
#include "math.h"
#include "fastmath.h"
#include "transforms.h"

using namespace FastMath;
using namespace Transforms;

extern float debug_registers[32];

#define dbg_angle debug_registers[0]
#define dbg_dtcA debug_registers[1]
#define dbg_dtcB debug_registers[2]
#define dbg_dtcC debug_registers[3]
#define dbg_t1 debug_registers[4]
#define dbg_t2 debug_registers[5]
#define dbg_loop_q debug_registers[6]
#define dbg_loop_d debug_registers[7]
#define dbg_ib debug_registers[8]
#define dbg_ic debug_registers[9]
#define dbg_d_filtered debug_registers[10]
#define dbg_q_filtered debug_registers[11]
#define dbg_ref_d debug_registers[12]
#define dbg_ref_q debug_registers[13]
#define dbg_valpha debug_registers[14]
#define dbg_vbeta debug_registers[15]

#endif