Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix 6 C++ 23.10.0-alpha-8
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SignalLogger.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
10
11namespace ctre {
12namespace phoenix6 {
13
14/**
15 * Static class for controlling the signal logger
16 *
17 * This logs all the signals from a canbus into a .hoot file
18 * The file name starts with the CANivore serial number or "rio" for the roboRIO canbus,
19 * followed by the timestamp.
20 *
21 * In the header of a hoot file, the CANivore name and firmware verion are logged in plain text.
22 */
24{
25public:
26 /**
27 * \brief Set the destination for logging, restarting logger if needed.
28 *
29 * If this is not called or the path is left empty, the default is /home/lvuser on roboRIO
30 * and the current working directory on all other platforms.
31 * Typical use for this routine is to use a removable thumb drive for logging instead of onboard flash.
32 *
33 * @return Status of logger restart
34 */
35 static ctre::phoenix::StatusCode SetPath(const char *path);
36 /**
37 * \brief Start logging StatusSignals
38 *
39 * Starts regardless of auto logging status. For example, you can manually start a log before a match begins,
40 * and if the auto logger is enabled, the log will still be ended at the end of the match.
41 *
42 * @return Status of logger start
43 */
44 static ctre::phoenix::StatusCode StartLog();
45 /**
46 * \brief Stop logging StatusSignals
47 *
48 * Stops regardless of auto logging status.
49 *
50 * @return Status of logger stop
51 */
52 static ctre::phoenix::StatusCode StopLog();
53 /**
54 * \brief Turn on or off auto logging
55 *
56 * Auto logging is only supported on the roboRIO
57 * When auto logging is enabled, logging is started
58 * at the beginning of a match and stopped at the end.
59 *
60 * @return Status of auto logging enable/disable
61 */
62 static ctre::phoenix::StatusCode EnableAutoLogging(bool enable);
63};
64
65}
66}
Static class for controlling the signal logger.
Definition: SignalLogger.hpp:24
static ctre::phoenix::StatusCode SetPath(const char *path)
Set the destination for logging, restarting logger if needed.
static ctre::phoenix::StatusCode StartLog()
Start logging StatusSignals.
static ctre::phoenix::StatusCode StopLog()
Stop logging StatusSignals.
static ctre::phoenix::StatusCode EnableAutoLogging(bool enable)
Turn on or off auto logging.
Definition: ManualEvent.hpp:12