Rename config.json to aos_config.json
Plenty of other things are called config.json, so let's pick a more
unique name.
Change-Id: I6510a172ec62674dd1b11bd71cef9aac2480c612
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2017/BUILD b/y2017/BUILD
index df1fd4b..a557815 100644
--- a/y2017/BUILD
+++ b/y2017/BUILD
@@ -49,7 +49,7 @@
)
aos_config(
- name = "config",
+ name = "aos_config",
src = "y2017.json",
flatbuffers = [
"//y2017/control_loops/superstructure:superstructure_goal_fbs",
@@ -61,8 +61,8 @@
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
deps = [
- "//frc971/control_loops/drivetrain:config",
- "//frc971/input:config",
+ "//frc971/control_loops/drivetrain:aos_config",
+ "//frc971/input:aos_config",
],
)
diff --git a/y2017/actors/autonomous_actor_main.cc b/y2017/actors/autonomous_actor_main.cc
index ae13d15..81f1507 100644
--- a/y2017/actors/autonomous_actor_main.cc
+++ b/y2017/actors/autonomous_actor_main.cc
@@ -8,7 +8,7 @@
::aos::InitGoogle(&argc, &argv);
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
::aos::ShmEventLoop event_loop(&config.message());
::y2017::actors::AutonomousActor autonomous(&event_loop);
diff --git a/y2017/control_loops/drivetrain/drivetrain_main.cc b/y2017/control_loops/drivetrain/drivetrain_main.cc
index 4db7b95..843349c 100644
--- a/y2017/control_loops/drivetrain/drivetrain_main.cc
+++ b/y2017/control_loops/drivetrain/drivetrain_main.cc
@@ -11,7 +11,7 @@
::aos::InitGoogle(&argc, &argv);
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
::aos::ShmEventLoop event_loop(&config.message());
::frc971::control_loops::drivetrain::DeadReckonEkf localizer(
diff --git a/y2017/control_loops/superstructure/BUILD b/y2017/control_loops/superstructure/BUILD
index 5481aa0..b974b15 100644
--- a/y2017/control_loops/superstructure/BUILD
+++ b/y2017/control_loops/superstructure/BUILD
@@ -78,7 +78,7 @@
srcs = [
"superstructure_lib_test.cc",
],
- data = ["//y2017:config"],
+ data = ["//y2017:aos_config"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
":superstructure_goal_fbs",
@@ -136,7 +136,7 @@
srcs = [
"vision_time_adjuster_test.cc",
],
- data = ["//y2017:config"],
+ data = ["//y2017:aos_config"],
target_compatible_with = ["@platforms//os:linux"],
deps = [
":vision_time_adjuster",
diff --git a/y2017/control_loops/superstructure/superstructure_lib_test.cc b/y2017/control_loops/superstructure/superstructure_lib_test.cc
index 05ca333..2c97475 100644
--- a/y2017/control_loops/superstructure/superstructure_lib_test.cc
+++ b/y2017/control_loops/superstructure/superstructure_lib_test.cc
@@ -521,7 +521,7 @@
protected:
SuperstructureTest()
: ::frc971::testing::ControlLoopTest(
- aos::configuration::ReadConfig("y2017/config.json"),
+ aos::configuration::ReadConfig("y2017/aos_config.json"),
chrono::microseconds(5050)),
test_event_loop_(MakeEventLoop("test")),
superstructure_goal_fetcher_(
diff --git a/y2017/control_loops/superstructure/superstructure_main.cc b/y2017/control_loops/superstructure/superstructure_main.cc
index 1a8627c..f113477 100644
--- a/y2017/control_loops/superstructure/superstructure_main.cc
+++ b/y2017/control_loops/superstructure/superstructure_main.cc
@@ -7,7 +7,7 @@
::aos::InitGoogle(&argc, &argv);
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
::aos::ShmEventLoop event_loop(&config.message());
::y2017::control_loops::superstructure::Superstructure superstructure(
diff --git a/y2017/control_loops/superstructure/vision_time_adjuster_test.cc b/y2017/control_loops/superstructure/vision_time_adjuster_test.cc
index 49e4460..66c3627 100644
--- a/y2017/control_loops/superstructure/vision_time_adjuster_test.cc
+++ b/y2017/control_loops/superstructure/vision_time_adjuster_test.cc
@@ -17,7 +17,7 @@
public:
VisionTimeAdjusterTest()
: ::testing::Test(),
- configuration_(aos::configuration::ReadConfig("y2017/config.json")),
+ configuration_(aos::configuration::ReadConfig("y2017/aos_config.json")),
event_loop_factory_(&configuration_.message()),
simulation_event_loop_(event_loop_factory_.MakeEventLoop("drivetrain")),
drivetrain_status_sender_(
diff --git a/y2017/joystick_reader.cc b/y2017/joystick_reader.cc
index cb21d3e..fd8dc38 100644
--- a/y2017/joystick_reader.cc
+++ b/y2017/joystick_reader.cc
@@ -326,7 +326,7 @@
::aos::InitGoogle(&argc, &argv);
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
::aos::ShmEventLoop event_loop(&config.message());
::y2017::input::joysticks::Reader reader(&event_loop);
diff --git a/y2017/vision/target_receiver.cc b/y2017/vision/target_receiver.cc
index ba09425..f21fe4e 100644
--- a/y2017/vision/target_receiver.cc
+++ b/y2017/vision/target_receiver.cc
@@ -20,7 +20,7 @@
// TODO(parker): Have this pull in a config from somewhere.
TargetFinder finder;
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
::aos::ShmEventLoop event_loop(&config.message());
diff --git a/y2017/wpilib_interface.cc b/y2017/wpilib_interface.cc
index 6a4596e..d299c1d 100644
--- a/y2017/wpilib_interface.cc
+++ b/y2017/wpilib_interface.cc
@@ -474,7 +474,7 @@
void Run() override {
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
- aos::configuration::ReadConfig("config.json");
+ aos::configuration::ReadConfig("aos_config.json");
// Thread 1.
::aos::ShmEventLoop joystick_sender_event_loop(&config.message());