Prius IPM controller

Dependencies:   mbed

Fork of analoghalls5_5 by N K

Committer:
bwang
Date:
Mon Mar 16 15:40:07 2015 +0000
Revision:
35:83cf9564bd0c
Parent:
24:f1ff9c7256b5
Set for 3A Iq, 0A Id, Ki = 1e-3, Kp = Kd = 0, loop still oscillates but is passable

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang 24:f1ff9c7256b5 1 #ifndef __DEBUG_H
bwang 24:f1ff9c7256b5 2 #define __DEBUG_H
bwang 24:f1ff9c7256b5 3
bwang 24:f1ff9c7256b5 4 #include "includes.h"
bwang 24:f1ff9c7256b5 5 #include "context.h"
bwang 24:f1ff9c7256b5 6
bwang 24:f1ff9c7256b5 7 class BufferedDebugger {
bwang 24:f1ff9c7256b5 8 public:
bwang 24:f1ff9c7256b5 9 BufferedDebugger(Context *context, int channels, int size);
bwang 24:f1ff9c7256b5 10 void Write(int channel, float f);
bwang 24:f1ff9c7256b5 11 void Flush();
bwang 24:f1ff9c7256b5 12 void Restart();
bwang 24:f1ff9c7256b5 13 private:
bwang 24:f1ff9c7256b5 14 Context *_context;
bwang 24:f1ff9c7256b5 15 int _size;
bwang 24:f1ff9c7256b5 16 int _channels;
bwang 24:f1ff9c7256b5 17 int *_index;
bwang 24:f1ff9c7256b5 18 int _done;
bwang 24:f1ff9c7256b5 19 float *_buffer;
bwang 24:f1ff9c7256b5 20 };
bwang 24:f1ff9c7256b5 21
bwang 24:f1ff9c7256b5 22 #endif