ESP_IOT v2.5
IOT ESP Coding
SG90ServoStepperClass Class Reference

An concrete class. More...

#include <SG90ServoStepperClass.h>

Inheritance diagram for SG90ServoStepperClass:
Inheritance graph
Collaboration diagram for SG90ServoStepperClass:
Collaboration graph

Public Member Functions

 SG90ServoStepperClass (char *config)
 constructor More...
 
 ~SG90ServoStepperClass ()
 destructor More...
 
void start_MotorStepper ()
 starts the SG90Servo More...
 
void setup_MotorStepper ()
 setup the SG90Servo More...
 
void stop_MotorStepper ()
 stops motor More...
 
void loop_MotorStepper ()
 setup the SG90Servo More...
 
- Public Member Functions inherited from MotorStepperClassType
 MotorStepperClassType (char *config)
 saves the identity (OOPS.. not working.. it's shared by all class instances.. so last one wins.. More...
 
 ~MotorStepperClassType ()
 destructor More...
 
virtual void start_MotorStepper ()=0
 
virtual void setup_MotorStepper ()=0
 setup the PTStepper More...
 
virtual void stop_MotorStepper ()=0
 stop the motor More...
 
virtual void loop_MotorStepper ()=0
 loop the PTStepper (so timer can run) More...
 
boolean isClockwiseDirection ()
 returns if clockwise More...
 
void setPinValues (int pin1, int pin2)
 
char * classIdentity ()
 

Additional Inherited Members

- Public Attributes inherited from MotorStepperClassType
int _pin1 = 0
 
int _pin2 = 0
 pin2 More...
 

Detailed Description

An concrete class.

Definition at line 16 of file SG90ServoStepperClass.h.

Constructor & Destructor Documentation

◆ SG90ServoStepperClass()

SG90ServoStepperClass::SG90ServoStepperClass ( char *  config)

constructor

Definition at line 27 of file SG90ServoStepperClass.cpp.

◆ ~SG90ServoStepperClass()

SG90ServoStepperClass::~SG90ServoStepperClass ( )

destructor

Member Function Documentation

◆ loop_MotorStepper()

void SG90ServoStepperClass::loop_MotorStepper ( )
virtual

setup the SG90Servo

loop the PTStepper (so timer can run)

user timer class instance

Implements MotorStepperClassType.

Definition at line 96 of file SG90ServoStepperClass.cpp.

Here is the call graph for this function:

◆ setup_MotorStepper()

void SG90ServoStepperClass::setup_MotorStepper ( )
virtual

setup the SG90Servo

These are called from StepperModule Prepare motor controller

Implements MotorStepperClassType.

Definition at line 59 of file SG90ServoStepperClass.cpp.

◆ start_MotorStepper()

void SG90ServoStepperClass::start_MotorStepper ( )
virtual

starts the SG90Servo

Data members of class Generic config info .. specific the the sensor type

This will advance the stepper clockwise once by the angle specified in SetupStepper. Example 16 pockets in UNO is 22.5 degrees This is the FEED message .. the comments mention the Stepper Motor .. which this isn't

ask the class wide method for the clockwise direction

grab this value.

start the delay.. (which at .5 might not be needed...)

Implements MotorStepperClassType.

Definition at line 68 of file SG90ServoStepperClass.cpp.

Here is the call graph for this function:

◆ stop_MotorStepper()

void SG90ServoStepperClass::stop_MotorStepper ( )
virtual

stops motor

stop the motor

user timer class instance

Implements MotorStepperClassType.

Definition at line 47 of file SG90ServoStepperClass.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: