PServo v0.2.1
Loading...
Searching...
No Matches
Public Attributes | List of all members
ps::Props Struct Reference

#include <PServo.h>

Public Attributes

State state
 Current state of the ps::PServo machine.
 
unsigned long pc
 Last registered process counter.
 
unsigned long *const timer
 Pointer to the timer variable in use.
 
unsigned char const min
 Minimal position that this machine can be.
 
unsigned char const max
 Maximum position that this machine can be.
 
bool const is_resetable
 Will the machine reset after it's halted?
 
unsigned char curr_action
 Says wich action it's trying to perform.
 
unsigned char active_action
 Which action is, actually, performing.
 
unsigned char actions_count
 How much actions was registred.
 
unsigned char pos
 Current servo position, will not be written.
 
unsigned short delay
 Delay stored for the current action move.
 

Detailed Description

List of all the private properties of ps::PServo. It's primary useful for testing and monitoring strategies, but be aware that you cannot hack those values inside the class, those are read only througth this struct.

Usage example:

unsigned char active_action = myservo_machine.props().active_action;
unsigned char const actions_count myservo_machine.props().actions_count;
Serial.print("Current action: ");
Serial.print(active_action);
Serial.println(" (last one)");
} else {
Serial.println();
}
unsigned char active_action
Which action is, actually, performing.
Definition PServo.h:95
unsigned char actions_count
How much actions was registred.
Definition PServo.h:96
See also
ps::State
ps::PServo

The documentation for this struct was generated from the following file: