mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Replace /home/lvuser with /home/systemcore (#8002)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -14,6 +14,7 @@ enum RuntimeType {
|
||||
/// roboRIO 2.0.
|
||||
kRoboRIO2,
|
||||
/// Simulation runtime.
|
||||
kSimulation
|
||||
kSimulation,
|
||||
kSystemCore
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user