Gyro sensor topics (#311)

This commit is contained in:
Galen Nickel
2018-02-08 09:35:47 -08:00
committed by Peli de Halleux
parent f53dbf4d83
commit b73696e918
7 changed files with 117 additions and 4 deletions

View File

@ -36,7 +36,7 @@ namespace sensors {
* Get the current angle from the gyroscope.
* @param sensor the gyroscope to query the request
*/
//% help=input/gyro/angle
//% help=sensors/gyro/angle
//% block="%sensor|angle"
//% blockId=gyroGetAngle
//% parts="gyroscope"
@ -56,7 +56,7 @@ namespace sensors {
* Get the current rotation rate from the gyroscope.
* @param sensor the gyroscope to query the request
*/
//% help=input/gyro/rate
//% help=sensors/gyro/rate
//% block="%sensor|rate"
//% blockId=gyroGetRate
//% parts="gyroscope"
@ -81,7 +81,7 @@ namespace sensors {
/**
* Forces a calibration of the gyro. Must be called when the sensor is completely still.
*/
//% help=input/gyro/calibrate
//% help=sensors/gyro/reset
//% block="reset %sensor|"
//% blockId=gyroReset
//% parts="gyroscope"