Skip to content

Commit

Permalink
fix visibility of C++ motorlog ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblarg committed Jan 6, 2024
1 parent 1d304a7 commit bd9fac9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions wpilibc/src/main/native/include/frc/sysid/SysIdRoutineLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ class SysIdRoutineLog {
/** Logs data from a single motor during a SysIdRoutine. */
class MotorLog {
public:
/**
* Create a new SysId motor log handle.
*
* @param motorName The name of the motor whose data is being logged.
*/
MotorLog(std::string_view motorName, std::string_view logName,
LogEntries* logEntries);

/**
* Log a generic data value from the motor.
*
Expand Down Expand Up @@ -148,6 +140,16 @@ class SysIdRoutineLog {
}

private:
friend class SysIdRoutineLog;
/**
* Create a new SysId motor log handle.
*
* @param motorName The name of the motor whose data is being logged.
* @param logName The name of the SysIdRoutineLog that this motor belongs to.
* @param logEntries The DataLog entries of the SysIdRoutineLog that this motor belongs to.
*/
MotorLog(std::string_view motorName, std::string_view logName,
LogEntries* logEntries);
std::string m_motorName;
std::string m_logName;
LogEntries* m_logEntries;
Expand Down

0 comments on commit bd9fac9

Please sign in to comment.