[{"description":"Base tests","service":536870899,"tests":[]},{"description":"Sensor tests","service":536870898,"tests":[]},{"description":"Rotary encoder manual tests","service":284830153,"tests":[{"description":"\n","commands":[{"kind":"say","message":"turn the knob back and forth"},{"kind":"changes","expr":{"left":{"id":"position"}}}]},{"description":"\nbasic tests\n\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"ne","right":{"negate":false,"const":0}}},{"kind":"say","message":"press reset button"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}}]},{"description":"\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"turn knob clockwise"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"gt","right":{"negate":false,"const":0}}}]},{"description":"\nturning each direction works\n\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"turn knob counter-clockwise"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"lt","right":{"negate":false,"const":0}}}]},{"description":"\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"turn one complete rotation clockwise"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"id":"clicks_per_turn"}}}]},{"description":"\none complete rotation\n\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"turn one complete rotation counter-clockwise"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":true,"id":"clicks_per_turn"}}}]},{"description":"\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"slowly turn clockwise one complete rotation"},{"kind":"observe","expr":{"left":{"id":"position"}}}]},{"description":"\none complete rotation, slowly\n\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"slowly turn counter-clockwise one complete rotation"},{"kind":"observe","expr":{"left":{"id":"position"}}}]},{"description":"\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"note physical position, quickly turn clockwise one complete rotation"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"id":"clicks_per_turn"}}},{"kind":"ask","message":"same physical position?"}]},{"description":"\n\n\n\n\n\n\n","commands":[{"kind":"establish","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":false,"const":0}}},{"kind":"say","message":"note physical position, quickly turn counter-clockwise one complete rotation"},{"kind":"check","expr":{"left":{"negate":false,"id":"position"},"op":"eq","right":{"negate":true,"id":"clicks_per_turn"}}},{"kind":"ask","message":"same physical position?"}]}]}]