Gearing header

This page contains the complete code of the header file in this chapter.

In Gear.h, your gear code should be like this:

#pragma once

#define GEAR_NUMERATOR 2
#define GEAR_DENOMINATOR 1

KsCommandStatus AssignGearSlave(int Master, int Slave);
KsCommandStatus AssignGearInPosSlave(int Master, int Slave, double MasterPosition, double SlavePosition);
VOID RemoveGearSlave(KsCommandStatus gear);