MESA_PKTGYRO_TEST(9)
π mesa_pktgyro_test β the manual page, but make it a group chat π
okay bestie, so this is the HAL Component manual page for mesa_pktgyro_test, and we're gonna go through it together because it's honestly iconic in a very niche way π
β¨ NAME β¨
mesa_pktgyro_test β PktUART simple test with Microstrain 3DM-GX3-15 gyro π
πΈ SYNOPSIS πΈ
loadrt mesa_pktgyro_test [count=N|names=name1[,name2...]]
π¦ DESCRIPTION π¦
So this whole component exists in order to test the PktUART driver for Mesa. That's the vibe, that's the assignment. It resembles partly Andy Pugh's mesa_uart.comp β like, it's giving cousin-energy, not twin-energy, if ykyk. π
This module uses the names= mode of the loadrt declaration to say which PktUART instances to enable. And yes, there's a little check baked in to make sure you're not out here using the count= option instead β it literally will not let you play yourself like that π. For simplicity we only test one PktUART instance, so you load the component like this:
loadrt mesa_uart names=hm2_5i25.0.pktuart.0
The PktUART instance names get printed to the dmesg buffer during the Hostmot2 setup sequence β one for each PktUART instance included in the bitfile loaded to each installed card during the Hostmot2 setup sequence. So just type dmesg at the terminal prompt to view the output, no cap. If you want to work with more than one PktUART instance, go consult Andy Pugh's mesa_uart.comp π
Wanna compile and install it? Bet. Do this:
halcompile --install src/hal/drivers/mesa_pktgyro_test.comp
The component exports only one function, namely receive, and it needs to be added to a realtime thread. To test this component, set DEBUG=5 before and execute this HAL script:
loadrt hostmot2
loadrt hm2_pci
loadrt mesa_pktgyro_test names=hm2_5i25.0.pktuart.0
loadrt threads name1=test1 period1=10000000
addf hm2_5i25.0.pktuart.0.receive test1
start
And then check linuxcnc.log for debug output. That's where the tea is ββ¨
π FUNCTIONS π
mesa-pktgyro-test.N.receiveβ and heads up bestie, this one requires a floating-point thread π§΅
π PINS π
mesa-pktgyro-test.N.rxbytess32 outβ Number of Bytes received, or a negative Error code π (so if it's being negative, it's literally telling you something went wrong)
π AUTHOR π
Boris Skegin π«Ά
π LICENSE π
GPL β periodt, the end, that's the license π
and that's the whole page bestie!! this was the LinuxCNC Documentation version dated 2026-03-17, part of the MESA_PKTGYRO_TEST(9) manual section π¦ go forth and test your gyro, you main character β¨π
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms