Easily print data to a log file.
More...
#include <Log.h>
|
| | Log (std::string filename, char sep=' ') |
| | A simple constructor for a Log. More...
|
| |
| | ~Log () |
| |
| void | println (long time, double angle) |
| |
| void | println (long time, double angle, double pidOutput) |
| |
| void | println (long time, double sp, double csp, double spd) |
| |
| void | println (long time, double sp, double csp, long enc, long filtered) |
| |
| void | close () |
| |
|
| std::ofstream | file |
| |
| char | sep |
| | The separator between each value on a line (ex a space, a column..) More...
|
| |
Easily print data to a log file.
- Examples
- example_log.cpp, example_motor_pid_encoder.cpp, and project_pendulum.cpp.
Definition at line 13 of file Log.h.
◆ Log()
| Log::Log |
( |
std::string |
filename, |
|
|
char |
sep = ' ' |
|
) |
| |
A simple constructor for a Log.
Path of the resulting file: /home/filename
- Parameters
-
| filename | The filename to give. You can pass an extension if you want. |
| sep | The separator between each data on a line |
Definition at line 12 of file Log.cpp.
◆ ~Log()
◆ close()
◆ println() [1/4]
| void Log::println |
( |
long |
time, |
|
|
double |
angle |
|
) |
| |
◆ println() [2/4]
| void Log::println |
( |
long |
time, |
|
|
double |
angle, |
|
|
double |
pidOutput |
|
) |
| |
◆ println() [3/4]
| void Log::println |
( |
long |
time, |
|
|
double |
sp, |
|
|
double |
csp, |
|
|
double |
spd |
|
) |
| |
◆ println() [4/4]
| void Log::println |
( |
long |
time, |
|
|
double |
sp, |
|
|
double |
csp, |
|
|
long |
enc, |
|
|
long |
filtered |
|
) |
| |
◆ file
| std::ofstream myRIO::Log::file |
|
private |
Definition at line 23 of file Log.h.
◆ sep
The separator between each value on a line (ex a space, a column..)
Definition at line 24 of file Log.h.
The documentation for this class was generated from the following files:
- C:/Users/jackb/OneDrive - etu.univ-lyon1.fr/TERi/Eclipse/workspace/APIForRIO/src/Log.h
- C:/Users/jackb/OneDrive - etu.univ-lyon1.fr/TERi/Eclipse/workspace/APIForRIO/src/Log.cpp