Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
a4cda752
Commit
a4cda752
authored
Apr 11, 2023
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email 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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
wr_mon.c
userspace/tools/wr_mon.c
+2
-11
No files found.
userspace/tools/wr_mon.c
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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment