Replace /home/lvuser with /home/systemcore (#8002)

This commit is contained in:
Thad House
2025-06-02 16:42:56 -07:00
committed by GitHub
parent 4d74ea6278
commit 2af8c59858
25 changed files with 139 additions and 147 deletions

View File

@@ -18,7 +18,7 @@ namespace frc {
* automatically cleans up old files when disk space is low and renames the file
* based either on current date/time or (if available) competition match number.
* The data file will be saved to a USB flash drive in a folder named "logs" if
* one is attached, or to /home/lvuser/logs otherwise.
* one is attached, or to /home/systemcore/logs otherwise.
*
* Log files are initially named "FRC_TBD_{random}.wpilog" until the DS
* connects. After the DS connects, the log file is renamed to

View File

@@ -19,7 +19,7 @@ std::string GetLaunchDirectory();
/**
* Obtains the operating directory of the program. On the roboRIO, this
* is /home/lvuser. In simulation, it is where the simulation was launched
* is /home/systemcore. In simulation, it is where the simulation was launched
* from (`pwd`).
*
* @return The result of the operating directory lookup.
@@ -29,8 +29,8 @@ std::string GetOperatingDirectory();
/**
* Obtains the deploy directory of the program, which is the remote location
* src/main/deploy is deployed to by default. On the roboRIO, this is
* /home/lvuser/deploy. In simulation, it is where the simulation was launched
* from, in the subdirectory "src/main/deploy" (`pwd`/src/main/deploy).
* /home/systemcore/deploy. In simulation, it is where the simulation was
* launched from, in the subdirectory "src/main/deploy" (`pwd`/src/main/deploy).
*
* @return The result of the operating directory lookup
*/

View File

@@ -24,7 +24,7 @@ namespace frc {
int RunHALInitialization();
namespace impl {
#ifndef __FRC_ROBORIO__
#ifndef __FRC_SYSTEMCORE__
void ResetMotorSafety();
#endif
@@ -124,7 +124,7 @@ int StartRobot() {
impl::RunRobot<Robot>(m, &robot);
}
#ifndef __FRC_ROBORIO__
#ifndef __FRC_SYSTEMCORE__
frc::impl::ResetMotorSafety();
#endif
HAL_Shutdown();
@@ -235,7 +235,7 @@ class RobotBase {
* @return If the robot is running in the real world.
*/
static constexpr bool IsReal() {
#ifdef __FRC_ROBORIO__
#ifdef __FRC_SYSTEMCORE__
return true;
#else
return false;
@@ -248,7 +248,7 @@ class RobotBase {
* @return If the robot is running in simulation.
*/
static constexpr bool IsSimulation() {
#ifdef __FRC_ROBORIO__
#ifdef __FRC_SYSTEMCORE__
return false;
#else
return true;

View File

@@ -14,6 +14,7 @@ enum RuntimeType {
/// roboRIO 2.0.
kRoboRIO2,
/// Simulation runtime.
kSimulation
kSimulation,
kSystemCore
};
} // namespace frc