29#include "../lib/part.h"
31#define PART_STEP_Name "Step Motor"
40 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
46 cpart_step(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
const int id_);
54 void DrawOutput(
const unsigned int index)
override;
62 unsigned short GetInputId(
char* name)
override;
Board class.
Definition board.h:111
step motor part class
Definition output_step.h:38
std::string GetAboutInfo(void) override
Return the about information of part.
Definition output_step.h:40
void PreProcess(void) override
Called every start of CPU process.
Definition output_step.cc:151
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition output_step.cc:391
unsigned char input_pins[4]
pulse input pind
Definition output_step.h:67
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition output_step.cc:417
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition output_step.cc:71
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition output_step.cc:358
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition output_step.cc:409
void Process(void) override
Called every CPU step.
Definition output_step.cc:174
unsigned char output_pins[1]
pulse output pin
Definition output_step.h:68
void RegisterRemoteControl(void) override
Register remote control variables.
Definition output_step.cc:405
~cpart_step(void)
destructor called once on part destruction
Definition output_step.cc:65
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition output_step.cc:363
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition output_step.cc:400
void PostProcess(void) override
Called every end of CPU process.
Definition output_step.cc:341
PART class.
Definition part.h:49