Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PPS status indication via LED for UP board #93

Closed
hitimo opened this issue Sep 7, 2019 · 1 comment
Closed

PPS status indication via LED for UP board #93

hitimo opened this issue Sep 7, 2019 · 1 comment

Comments

@hitimo
Copy link

hitimo commented Sep 7, 2019

One-liner that turns on green LED on UP board if clock error is below 999ns. Maybe useful for someone. (Related to https://github.com/ethz-asl/ethz_piksi_ros/wiki/Piksi-PPS-Sync)

while true; do var=$(chronyc sources -v | grep PPS0 | sed 's/.*+\/- \(.*\)ns/\1/'); var_low=0; var_high=999; if [ $var -gt $var_low -a $var -lt $var_high ]; then echo 1 > /sys/class/leds/upboard\:green\:/brightness; else echo 0 > /sys/class/leds/upboard\:green\:/brightness; fi; sleep 1; done
@rikba
Copy link
Collaborator

rikba commented Sep 16, 2019

Thank you! I added it to the wiki.

@rikba rikba closed this as completed Sep 16, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants