Skip to content

Conversation

@haecto
Copy link
Collaborator

@haecto haecto commented Dec 8, 2025

Added:
EKF
TimeSync Adapted

@haecto haecto requested review from gabryelreyes and jkerpe December 8, 2025 13:26
const bool rtcSynced = m_timeSync.isRtcSynced();
const bool hostSynced = m_timeSync.isHostSynced();

(void)offsetMs; // keep for future debug if not used directly
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please always use /* ... */ comments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still used in Line 369.

@@ -1,5 +1,5 @@
{
"robotName": "1",
"robotName": "0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"zumo1" has the name "0"? does not match with the other config files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the RobotName defined here is the topic or aruco marcer number and has to match the one provided by SSR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then rename the file. It's confusing that robotName does not match the filename.

Comment on lines +228 to +229
const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs))
- (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use int64_t in the first place?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean because of the repetitive casts?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U;
m_hostSyncValid = true;

const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use float here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure, but i will try

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and did it work?

"--supervisorTxCh", "2",
"--serialRxCh", "3",
"--serialTxCh", "4",
"--settingsPath", "C:\Users\thaeckel\Documents\Repos\RadonUlzer\./settings/settings.json",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to use relative paths. Another developer will not be able to use this script

$webotsController = Join-Path $env:WEBOTS_HOME "msys64\mingw64\bin\webots-controller.exe"

# ===== RadonUlzer (Zumo / RemoteControlSim) ==================================
# Entspricht deinem PIO-Build-Aufruf:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use english as the standard language for all files that are commited to the repository

@@ -1,5 +1,5 @@
{
"robotName": "1",
"robotName": "0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then rename the file. It's confusing that robotName does not match the filename.

Comment on lines +242 to +246
x_next(0) = px + v * std::cos(thetaRad) * dt; /* p_x */
x_next(1) = py + v * std::sin(thetaRad) * dt; /* p_y */
x_next(2) = thetaMrad + omegaMrads * dt; /* theta [mrad] */
x_next(3) = v + a_x_mms * dt; /* v */
x_next(4) = omegaMrads; /* omega */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix indentation.

Comment on lines +228 to +229
const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs))
- (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U;
m_hostSyncValid = true;

const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and did it work?

Copy link
Collaborator

@gabryelreyes gabryelreyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still open review findings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants