Skip to content

Commit b97ccec

Browse files
committed
Style changes and default port changed 5069 -> 6060
1 parent cbf79a5 commit b97ccec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

configs/dev.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
"cv": {
5555
"yolo_model_dir": "/workspaces/obcpp/models/yolo11x.onnx",
5656
"not_stolen_addr": "localhost",
57-
"not_stolen_port": 5069
57+
"not_stolen_port": 6060
5858
},
5959
"camera": {
6060
"_comment": "See CameraConfig struct in datatypes.hpp for detailed explanations",
6161
"type": "mock",
6262
"save_dir": "/workspaces/obcpp/images/mock",
6363
"save_images_to_file": true,
6464
"mock": {
65-
"not_stolen_port": 5069,
65+
"not_stolen_port": 6060,
6666
"num_images": 10
6767
},
6868
"lucid": {

configs/jetson.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
"cv": {
5555
"yolo_model_dir": "/obcpp/models/yolo11x.onnx",
5656
"not_stolen_addr": "localhost",
57-
"not_stolen_port": 5069
57+
"not_stolen_port": 6060
5858
},
5959
"camera": {
6060
"_comment": "See CameraConfig struct in datatypes.hpp for detailed explanations",
6161
"type": "picamera",
6262
"save_dir": "/obcpp/images/",
6363
"save_images_to_file": true,
6464
"mock": {
65-
"not_stolen_port": 5069,
65+
"not_stolen_port": 6060,
6666
"num_images": 10
6767
},
6868
"lucid": {

src/camera/mock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void MockCamera::startTakingPictures(const std::chrono::milliseconds& interval,
7171
try {
7272
this->captureThread = std::thread(&MockCamera::captureEvery, this, interval, mavlinkClient);
7373
}
74-
catch (const std::exception &e) {
74+
catch (const std::exception& e) {
7575
std::cerr << e.what() << std::endl;
7676
}
7777
}
@@ -100,7 +100,7 @@ std::deque<ImageData> MockCamera::getAllImages() {
100100
return outputQueue;
101101
}
102102

103-
void MockCamera::captureEvery(const std::chrono::milliseconds &interval,
103+
void MockCamera::captureEvery(const std::chrono::milliseconds& interval,
104104
std::shared_ptr<MavlinkClient> mavlinkClient) {
105105
loguru::set_thread_name("mock camera");
106106
while (this->isTakingPictures) {
@@ -121,7 +121,7 @@ void MockCamera::captureEvery(const std::chrono::milliseconds &interval,
121121
}
122122
}
123123

124-
std::optional<ImageData> MockCamera::takePicture(const std::chrono::milliseconds &timeout,
124+
std::optional<ImageData> MockCamera::takePicture(const std::chrono::milliseconds& timeout,
125125
std::shared_ptr<MavlinkClient> mavlinkClient) {
126126
int random_idx = randomInt(0, this->mock_images.size() - 1);
127127

0 commit comments

Comments
 (0)