AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
test_encoders.cpp File Reference
#include <gtest/gtest.h>
#include <board.h>
#include <encoders.h>
Include dependency graph for test_encoders.cpp:

Classes

class  EncodersTest
 

Functions

 TEST_F (EncodersTest, test_encA_rising_not_in_front)
 
 TEST_F (EncodersTest, test_encA_rising_in_front_notKH270)
 
 TEST_F (EncodersTest, test_encA_rising_in_front_KH270)
 
 TEST_F (EncodersTest, test_encA_rising_in_front_G_carriage)
 
 TEST_F (EncodersTest, test_encA_falling_not_in_front)
 
 TEST_F (EncodersTest, test_encA_falling_in_front)
 
 TEST_F (EncodersTest, test_encA_falling_in_front_KH910)
 
 TEST_F (EncodersTest, test_getPosition)
 
 TEST_F (EncodersTest, test_getBeltShift)
 
 TEST_F (EncodersTest, test_getDirection)
 
 TEST_F (EncodersTest, test_getHallActive)
 
 TEST_F (EncodersTest, test_getCarriage)
 
 TEST_F (EncodersTest, test_getMachineType)
 
 TEST_F (EncodersTest, test_getHallValue)
 

Variables

Encodersencoders
 
const int MID_SENSOR_VALUE = 400
 

Detailed Description

`s

This file is part of AYAB.

AYAB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AYAB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with AYAB. If not, see http://www.gnu.org/licenses/.

Original Work Copyright 2013 Christian Obersteiner, Andreas Müller Modified Work Copyright 2020 Sturla Lange, Tom Price http://ayab-knitting.com