i have this code which works perfectly when called withing XML interface but it always returns 0 and does not updates the referenced C: variable if called from a gauge callback.
PCSTRINGZ compiled;
UINT32 compilation_size;
FLOAT64 result_f;
SINT32 result_i;
PCSTRINGZ result_s;
gauge_calculator_code_precompile(&compiled,&compilation_size,"111 (>C:Knob1:Value)");
execute_calculator_code(compiled,&result_f,&result_i,&result_s);
Note that if "111 (>C:Knob1:Value)" is replaced with something like "(A
lane heading degrees gyro,degrees)" it works perfectly in gauge callback too.
Does anyones knows how C: variable can be set within gauge callbacks???
*Can anyone explain the ModuleID field of GAUGESLINKAGE/FSLINKAGE struct.
** one more thing reserved4 in the GAUGESHDR is actually the Linkage from which the gauge is derived.
PCSTRINGZ compiled;
UINT32 compilation_size;
FLOAT64 result_f;
SINT32 result_i;
PCSTRINGZ result_s;
gauge_calculator_code_precompile(&compiled,&compilation_size,"111 (>C:Knob1:Value)");
execute_calculator_code(compiled,&result_f,&result_i,&result_s);
Note that if "111 (>C:Knob1:Value)" is replaced with something like "(A
Does anyones knows how C: variable can be set within gauge callbacks???
*Can anyone explain the ModuleID field of GAUGESLINKAGE/FSLINKAGE struct.
** one more thing reserved4 in the GAUGESHDR is actually the Linkage from which the gauge is derived.
Last edited:



