Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
a4cda752
Commit
a4cda752
authored
1 year ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
[BUG:
#274
] userspace/tools: fix crtt value printed by wr_mon -e
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
2210a567
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/tools/wr_mon.c
+2
-11
2 additions, 11 deletions
userspace/tools/wr_mon.c
with
2 additions
and
11 deletions
userspace/tools/wr_mon.c
+
2
−
11
View file @
a4cda752
...
...
@@ -262,12 +262,6 @@ int64_t interval_to_picos(TimeInterval interval)
return
(
interval
*
1000
)
>>
TIME_INTERVAL_FRACBITS
;
}
int64_t
pp_time_to_picos
(
struct
pp_time
*
ts
)
{
return
ts
->
secs
*
PP_NSEC_PER_SEC
+
((
ts
->
scaled_nsecs
*
1000
+
0x8000
)
>>
TIME_INTERVAL_FRACBITS
);
}
TimeInterval
pp_time_to_interval
(
struct
pp_time
*
pptime
)
{
return
pptime
->
scaled_nsecs
;
}
...
...
@@ -987,10 +981,6 @@ void show_servo(struct inst_servo_t *servo, int alive)
printf
(
"md:%s "
,
timeIntervalToString
(
servo
->
meanDelay
,
buf
));
printf
(
"dms:%s "
,
timeToString
(
&
servo
->
servo_snapshot
.
delayMS
,
buf
));
if
(
wr_servo
)
{
int64_t
crtt
=
wr_servo
->
delayMM_ps
-
pp_time_to_picos
(
&
wr_servo_ext
->
delta_txm
)
-
pp_time_to_picos
(
&
wr_servo_ext
->
delta_rxm
)
-
pp_time_to_picos
(
&
wr_servo_ext
->
delta_txs
)
-
pp_time_to_picos
(
&
wr_servo_ext
->
delta_rxs
);
printf
(
"lock:%i "
,
wr_servo
->
tracking_enabled
);
printf
(
"dtxm:%s "
,
timeToString
(
&
wr_servo_ext
->
delta_txm
,
buf
));
printf
(
"drxm:%s "
,
timeToString
(
&
wr_servo_ext
->
delta_rxm
,
buf
));
...
...
@@ -1004,11 +994,12 @@ void show_servo(struct inst_servo_t *servo, int alive)
*/
//printf("ll:%d ",
// (int) (crtt / 2 / 1e6 * 299.792458 / 1.4827 * 100));
printf
(
"crtt:%ll
u
"
,
crtt
);
printf
(
"crtt:%ll
d
"
,
wr_servo
->
delayMM_ps
);
printf
(
"setp:%d "
,
wr_servo
->
cur_setpoint_ps
);
}
if
(
l1e_servo
)
{
printf
(
"lock:%i "
,
l1e_servo
->
tracking_enabled
);
printf
(
"crtt:%lld "
,
l1e_servo
->
delayMM_ps
);
printf
(
"setp:%d "
,
l1e_servo
->
cur_setpoint_ps
);
}
printf
(
"asym:%s "
,
timeIntervalToString
(
servo
->
delayAsymmetry
,
buf
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment