added Variablehandler for Temp
This commit is contained in:
@ -248,17 +248,17 @@ VOID PECO_vTask( PVOID arg )
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// Function: boSetPeltierVoltage
|
||||
// Description: Sets the Peltier elements to a specific Voltage
|
||||
// Parameters: S8 Voltage (14V - -8V)
|
||||
// Parameters: S8 Voltage (12V - -3V)
|
||||
// Returns: Boolean TRUE if successful
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
BOOL boSetPeltierVoltage( S16 Voltage ){
|
||||
BOOL boOK = TRUE;
|
||||
|
||||
if( Voltage > 14000 ) Voltage = 14000;
|
||||
if( Voltage < -8000 ) Voltage = -8000;
|
||||
|
||||
boOK &= ANPO_boSetVoltage( ((((FLOAT)Voltage)/1000) + 20.088) / 34.103 );
|
||||
if( Voltage > 14000 ) Voltage = 12000;
|
||||
if( Voltage < -8000 ) Voltage = -3000;
|
||||
|
||||
ANPO_boSetVoltage( ((((FLOAT)Voltage)/1000) + 20.088) / 34.103 );
|
||||
|
||||
return( boOK );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user