mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
enc03r: C port; FTI; C++ wraps C
The API for this driver has changed. See docs/apichanges.md. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -55,10 +55,9 @@ def main():
|
||||
print("Reference value: ", myAnalogGyro.calibrationValue())
|
||||
|
||||
while(1):
|
||||
gyroVal = myAnalogGyro.value();
|
||||
outputStr = ("Raw value: {0}, "
|
||||
"angular velocity: {1}"
|
||||
" deg/s".format(gyroVal, myAnalogGyro.angularVelocity(gyroVal)))
|
||||
myAnalogGyro.update();
|
||||
outputStr = ("Angular velocity: {0}"
|
||||
" deg/s".format(myAnalogGyro.angularVelocity()))
|
||||
print(outputStr)
|
||||
|
||||
time.sleep(.1)
|
||||
|
Reference in New Issue
Block a user