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_fsm.cpp File Reference
#include <gtest/gtest.h>
#include <fsm.h>
#include <knitter.h>
#include <encoders.h>
#include <beeper_mock.h>
#include <com_mock.h>
#include <encoders_mock.h>
#include <solenoids_mock.h>
#include <tester_mock.h>
Include dependency graph for test_fsm.cpp:

Classes

class  FsmTest
 

Functions

 TEST_F (FsmTest, test_setState)
 
 TEST_F (FsmTest, test_dispatch_init)
 
 TEST_F (FsmTest, test_dispatch_test)
 
 TEST_F (FsmTest, test_dispatch_knit)
 
 TEST_F (FsmTest, test_dispatch_error)
 
 TEST_F (FsmTest, test_dispatch_default)
 

Variables

Fsmfsm
 
Knitterknitter
 
BeeperMockbeeper
 
ComMockcom
 
EncodersMockencoders
 
SolenoidsMocksolenoids
 
TesterMocktester
 
const uint8_t positionPassedLeft = (END_LEFT_PLUS_OFFSET[static_cast<uint8_t>(Machine_t::Kh910)] + GARTER_SLOP) + 1
 
const uint8_t positionPassedRight = (END_RIGHT_MINUS_OFFSET[static_cast<uint8_t>(Machine_t::Kh910)] - GARTER_SLOP) - 1
 

Detailed Description

`

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