Conversation
| const bool rtcSynced = m_timeSync.isRtcSynced(); | ||
| const bool hostSynced = m_timeSync.isHostSynced(); | ||
|
|
||
| (void)offsetMs; // keep for future debug if not used directly |
There was a problem hiding this comment.
Please always use /* ... */ comments.
data/config/config_zumo1.json
Outdated
| @@ -1,5 +1,5 @@ | |||
| { | |||
| "robotName": "1", | |||
| "robotName": "0", | |||
There was a problem hiding this comment.
"zumo1" has the name "0"? does not match with the other config files.
There was a problem hiding this comment.
the RobotName defined here is the topic or aruco marcer number and has to match the one provided by SSR
There was a problem hiding this comment.
Then rename the file. It's confusing that robotName does not match the filename.
| const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs)) | ||
| - (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs)); |
There was a problem hiding this comment.
Can't you use int64_t in the first place?
There was a problem hiding this comment.
you mean because of the repetitive casts?
| m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U; | ||
| m_hostSyncValid = true; | ||
|
|
||
| const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0; |
There was a problem hiding this comment.
I'm not 100% sure, but i will try
start_sensorFusion.ps1
Outdated
| "--supervisorTxCh", "2", | ||
| "--serialRxCh", "3", | ||
| "--serialTxCh", "4", | ||
| "--settingsPath", "C:\Users\thaeckel\Documents\Repos\RadonUlzer\./settings/settings.json", |
There was a problem hiding this comment.
Try to use relative paths. Another developer will not be able to use this script
start_sensorFusion.ps1
Outdated
| $webotsController = Join-Path $env:WEBOTS_HOME "msys64\mingw64\bin\webots-controller.exe" | ||
|
|
||
| # ===== RadonUlzer (Zumo / RemoteControlSim) ================================== | ||
| # Entspricht deinem PIO-Build-Aufruf: |
There was a problem hiding this comment.
Please use english as the standard language for all files that are commited to the repository
data/config/config_zumo1.json
Outdated
| @@ -1,5 +1,5 @@ | |||
| { | |||
| "robotName": "1", | |||
| "robotName": "0", | |||
There was a problem hiding this comment.
Then rename the file. It's confusing that robotName does not match the filename.
| 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 */ |
| const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs)) | ||
| - (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs)); |
| m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U; | ||
| m_hostSyncValid = true; | ||
|
|
||
| const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0; |
…ted comment from // to /**/
gabryelreyes
left a comment
There was a problem hiding this comment.
There are still open review findings
Added:
EKF
TimeSync Adapted