Something went wrong on our end
log_data.h 794 B
/*
* log_data.h
*
* Created on: Feb 20, 2016
* Author: ucart
*/
#ifndef LOG_DATA_H_
#define LOG_DATA_H_
#include "type_def.h"
#define LOG_STARTING_SIZE 4096 //262144 // 2^18 32768 2^15
void initialize_logging(log_t* log_struct, parameter_t* ps);
/**
* @brief
* Logs the data obtained throughout the controller loop.
*
* @param log_struct
* structure of the data to be logged
*
* @return
* error message
*
*/
int log_data(log_t* log_struct, parameter_t* ps);
/**
* Fills up an xbox hueg amount of memory with log data
*/
void updateLog(log_t log_struct);
/**
* Prints all the log information.
*/
void printLogging(log_t* log_struct, parameter_t* ps);
int format_log(int idx, log_t* log_struct, char* buf);
#endif /* LOG_DATA_H_ */