Example 6 Getting Values ======================== Simulation ----------- .. image:: ../tutorial/code6.gif :alt: not found :align: center The data collected by the code will show up in the bottom right in the console. In this case, the values 16320 and 23095 have been recorded. Real Life --------- .. image:: ../tutorial/code6real.jpg :alt: not found :align: center The data collected by the code will show up on the hub. What does the code do? ---------------------- This code gives the motor values, and prints the values in the console. Functions Used -------------- print( Inputted message) gmpc( get_motor_position) Function Implementation *********************** .. code-block:: python :linenos: #!/usr/bin/python3 import os, sys sys.path.append("/usr/lib") from kipr import* def main(): print("this is the value of the wheel:", gmpc(0)) print("this is the value of the wheel:", gmpc(3)) if __name__ == "__main__": main() Rookie Tip ---------- By printing the gmpc, you can know the exact position the robot motors are at.