Could be working version
This commit is contained in:
35
firmware/src/hw/cc_output.h
Normal file
35
firmware/src/hw/cc_output.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef CONST_CURRENT_OUTPUT_H_
|
||||
#define CONST_CURRENT_OUTPUT_H_
|
||||
|
||||
/**** Includes ****/
|
||||
#include <stdint.h>
|
||||
#include "../bsp/ain.h"
|
||||
#include "cv_output.h"
|
||||
|
||||
namespace hw {
|
||||
|
||||
/**** Public definitions ****/
|
||||
|
||||
class CCoutput : public CVoutput
|
||||
{
|
||||
protected:
|
||||
bsp::AnalogIn* out_voltage;
|
||||
bsp::AnalogIn* out_currnet;
|
||||
|
||||
public:
|
||||
CCoutput(bsp::Hafbridge* hbridge, bsp::AnalogIn* supply_u, bsp::AnalogIn* out_u, bsp::AnalogIn* out_i);
|
||||
|
||||
void update(void);
|
||||
|
||||
uint16_t out_impedance;
|
||||
uint16_t target_voltage;
|
||||
};
|
||||
|
||||
/**** Public function declarations ****/
|
||||
|
||||
#ifdef TESTING
|
||||
#endif
|
||||
|
||||
} //namespace
|
||||
|
||||
#endif /* CONST_VOLTAGE_OUTPUT_H_ */
|
||||
Reference in New Issue
Block a user