@pavel-samokha
O,I made a mistake,Let format=OneDecimal;,This is no in HEADER
Modify to:
/***HEADER***/
format = OneDecimal
/***ENDHEADER***/
/* While in sport mode do this once per second*/
RESULT = 0;
FTP=SUUNTO_USER_HEIGHT+100;
format = 1;
if (SUUNTO_BIKE_POWER_AVG[3] < FTP * 55/100) {
RESULT=(1.0+ ( SUUNTO_BIKE_POWER_AVG[3] / (FTP * 55/100) ) ) ;postfix="ActRec";
}
else if (SUUNTO_BIKE_POWER_AVG[3]>FTP * 55/100 && SUUNTO_BIKE_POWER_AVG[3]< FTP * 75/100)
{RESULT=(2.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 55/100) ) / ( (FTP * 75/100) - (FTP * 55/100) ) ) );postfix="Endur"; }
else if (SUUNTO_BIKE_POWER_AVG[3]>FTP * 75/100 && SUUNTO_BIKE_POWER_AVG[3] < FTP * 90/100)
{RESULT=(3.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 75/100) ) / ( (FTP * 90/100) - (FTP * 75/100) ) ) ) ;postfix="Tempo"; }
else if (SUUNTO_BIKE_POWER_AVG[3]> FTP * 90/100 && SUUNTO_BIKE_POWER_AVG[3]< FTP* 105/100 )
{RESULT=(4.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 90/100) ) / ( (FTP * 105/100) - (FTP * 90/100) ) ) );postfix="Thresh"; }
else if(SUUNTO_BIKE_POWER_AVG[3]> FTP * 105/100 && SUUNTO_BIKE_POWER_AVG[3]< FTP * 120/100)
{RESULT=(5.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 105/100) ) / ( (FTP * 120/100) - (FTP * 105/100) ) ) ) ;postfix="VO2M"; }
else if(SUUNTO_BIKE_POWER_AVG[3]> FTP * 120/100 && SUUNTO_BIKE_POWER_AVG[3]< FTP * 150/100)
{RESULT=(6.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 120/100) ) / ( (FTP * 150/100) - (FTP * 120/100) ) ) );postfix="Anaer"; }
else if (SUUNTO_BIKE_POWER_AVG[3] > FTP * 150/100 )
{RESULT=(7.0 + ( ( SUUNTO_BIKE_POWER_AVG[3] - (FTP * 150/100) ) / ( 2000 - (FTP * 150/100) ) ) ) ;postfix="SPRINT"; }
The result is Ok!
Thanks very much!