📄 coeff_obj.c
字号:
** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStepSpread (){ return step_coeff.spread;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStepBreed** PURPOSE: return breed from step_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStepBreed (){ return step_coeff.breed;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStepSlopeResist** PURPOSE: return slope_resistance from step_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStepSlopeResist (){ return step_coeff.slope_resistance;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStepRoadGravity** PURPOSE: return road_gravity from step_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStepRoadGravity (){ return step_coeff.road_gravity;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStartDiffusion** PURPOSE: return diffusion from start_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStartDiffusion (){ return start_coeff.diffusion;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStartSpread** PURPOSE: return spread from start_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStartSpread (){ return start_coeff.spread;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStartBreed** PURPOSE: return breed from start_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStartBreed (){ return start_coeff.breed;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStartSlopeResist** PURPOSE: return slope_resistance from start_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStartSlopeResist (){ return start_coeff.slope_resistance;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStartRoadGravity** PURPOSE: return road_gravity from start_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStartRoadGravity (){ return start_coeff.road_gravity;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStopDiffusion** PURPOSE: return diffusion from stop_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStopDiffusion (){ return stop_coeff.diffusion;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStopSpread** PURPOSE: return spread from stop_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStopSpread (){ return stop_coeff.spread;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStopBreed** PURPOSE: return breed from stop_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStopBreed (){ return stop_coeff.breed;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStopSlopeResist** PURPOSE: return slope_resistance from stop_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStopSlopeResist (){ return stop_coeff.slope_resistance;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetStopRoadGravity** PURPOSE: return road_gravity from stop_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetStopRoadGravity (){ return stop_coeff.road_gravity;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetBestFitDiffusion** PURPOSE: return diffusion from best_fit_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetBestFitDiffusion (){ return best_fit_coeff.diffusion;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetBestFitSpread** PURPOSE: return spread from best_fit_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetBestFitSpread (){ return best_fit_coeff.spread;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetBestFitBreed** PURPOSE: return breed from best_fit_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetBestFitBreed (){ return best_fit_coeff.breed;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetBestFitSlopeResist** PURPOSE: return slope_resistance from best_fit_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetBestFitSlopeResist (){ return best_fit_coeff.slope_resistance;}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_GetBestFitRoadGravity** PURPOSE: return road_gravity from best_fit_coeff struct** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/int coeff_GetBestFitRoadGravity (){ return best_fit_coeff.road_gravity;}/*****************************************************************************\********************************************************************************* **** LOGGING FUNCTIONS **** *********************************************************************************\*****************************************************************************//*************************************************************************************************************************************************************** FUNCTION NAME: coeff_MemoryLog** PURPOSE: log pointers to memory locations to file descriptor fp** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/void coeff_MemoryLog (FILE * fp){ LOG_MEM (fp, &saved_coefficient, sizeof (coeff_val_info), 1); LOG_MEM (fp, ¤t_coefficient, sizeof (coeff_val_info), 1); LOG_MEM (fp, &step_coeff, sizeof (coeff_val_info), 1); LOG_MEM (fp, &start_coeff, sizeof (coeff_val_info), 1); LOG_MEM (fp, &stop_coeff, sizeof (coeff_val_info), 1); LOG_MEM (fp, &best_fit_coeff, sizeof (coeff_val_info), 1); LOG_MEM_CHAR_ARRAY (fp, &coeff_filename[0], sizeof (char), MAX_FILENAME_LEN);}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_LogSaved** PURPOSE: log values in saved_coefficient struct to file descriptor fp** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/void coeff_LogSaved (FILE * fp){ LOG_FLOAT (fp, saved_coefficient.diffusion); LOG_FLOAT (fp, saved_coefficient.spread); LOG_FLOAT (fp, saved_coefficient.breed); LOG_FLOAT (fp, saved_coefficient.slope_resistance); LOG_FLOAT (fp, saved_coefficient.road_gravity);}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_LogCurrent** PURPOSE: log values in current_coefficient to file descriptor fp** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/void coeff_LogCurrent (FILE * fp){ LOG_FLOAT (fp, current_coefficient.diffusion); LOG_FLOAT (fp, current_coefficient.spread); LOG_FLOAT (fp, current_coefficient.breed); LOG_FLOAT (fp, current_coefficient.slope_resistance); LOG_FLOAT (fp, current_coefficient.road_gravity);}/*************************************************************************************************************************************************************** FUNCTION NAME: coeff_LogStep** PURPOSE: log values in step_coeff struct to file descriptor fp** AUTHOR: Keith Clarke** PROGRAMMER: Tommy E. Cathey of NESC (919)541-1500** CREATION DATE: 11/11/1999** DESCRIPTION:*****/void coeff_LogStep (FILE * fp){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -