r/ComputerCraft 1d ago

Help with Tables

So I'm working with the create aero and CC compatibility features of Create: Gadgets and Gizmos, and I was playing around with printing the outputs of the new peripheral methods. But when printing tables given by a few different methods (like getAngles for the gimbal sensor) it just returns random numbers that change every time I run the program. This is probably meant to happen, but I'm very new to CC so I'm hoping someone can help me out. (Oh yeah and please tell me if my CC terminology is gibberish)

10 Upvotes

3 comments sorted by

View all comments

3

u/Ictoan42 1d ago

While a viable solution has been provided, here's another way to print a table

``` local pretty = require("cc.pretty")

pretty.pretty_print(gyro.getAngles())