#include <LOW_compJalousieController.h>
Inheritance diagram for LOW_compJalousieController:
Public Member Functions | |
class_DERIVE_FROM_EXCEPTION (compJalousieController_error, component_error) | |
LOW_compJalousieController (const LOW_devDS2405 &inPowerControl, const LOW_devDS2405 &inDirectionControl, const float inClosingTime, const float inOpeningTime, const float inAngleClosingTime, const float inAngleOpeningTime) | |
~LOW_compJalousieController () | |
void | setPosition (float inPos, float inAngle) |
float | getClosingTime () const |
void | setClosingTime (const float inClosingTime) |
float | getOpeningTime () const |
void | setOpeningTime (const float inOpeningTime) |
float | getAngleClosingTime () const |
void | setAngleClosingTime (const float inAngleClosingTime) |
float | getAngleOpeningTime () const |
void | setAngleOpeningTime (const float inAngleOpeningTime) |
void | measureTransitionDelays () |
void | getTransitionDelays (unsigned int &outStop2upDelay, unsigned int &outUp2stopDelay, unsigned int &outStop2downDelay, unsigned int &outDown2stopDelay, unsigned int &outUp2downDelay, unsigned int &outDown2upDelay) |
void | setTransitionDelays (const unsigned int inStop2upDelay, const unsigned int inUp2stopDelay, const unsigned int inStop2downDelay, const unsigned int inDown2stopDelay, const unsigned int inUp2downDelay, const unsigned int inDown2upDelay) |
Protected Member Functions | |
void | moveUp () |
void | moveDown () |
void | stopMove () |
void | moveUpStop (const unsigned long inMillis) |
void | moveDownStop (const unsigned long inMillis) |
Protected Attributes | |
const int | jcSerialNum |
const LOW_devDS2405 & | powerControl |
const LOW_devDS2405 & | directionControl |
float | closingTime |
float | openingTime |
float | angleClosingTime |
float | angleOpeningTime |
unsigned int | stop2upDelay |
unsigned int | up2stopDelay |
unsigned int | stop2downDelay |
unsigned int | down2stopDelay |
unsigned int | up2downDelay |
unsigned int | down2upDelay |
LOW_thread_mutex * | __linkRecMutex |
Static Protected Attributes | |
const int | fullMovementAdditionMillis = 500 |
Private Member Functions | |
void | setPowerOn () |
void | setPowerOff () |
void | setDirectionDown () |
void | setDirectionUp () |
unsigned int | averageMillis (const std::vector< unsigned int > &inVals) |
Private Attributes | |
bool | powerIsOn |
bool | directionIsDown |
Static Private Attributes | |
int | jcCounter = 0 |
Friends | |
class | manualMove |
class | jcLock |
Calibration methods.
Locking during angle moves.
Method for angle move only
PROVIDE ASSIGNMENT CONSTRUCTOR
Definition at line 36 of file LOW_compJalousieController.h.
|
|
Definition at line 98 of file LOW_compJalousieController.cpp. References __linkRecMutex, jcLock, and stopMove(). |
|
Definition at line 431 of file LOW_compJalousieController.cpp. Referenced by measureTransitionDelays(). |
|
|
|
Definition at line 199 of file LOW_compJalousieController.cpp. References angleClosingTime. |
|
Definition at line 212 of file LOW_compJalousieController.cpp. References angleOpeningTime. |
|
Definition at line 173 of file LOW_compJalousieController.cpp. References closingTime. |
|
Definition at line 186 of file LOW_compJalousieController.cpp. References openingTime. |
|
Definition at line 284 of file LOW_compJalousieController.cpp. References down2stopDelay, down2upDelay, stop2downDelay, stop2upDelay, up2downDelay, and up2stopDelay. |
|
Definition at line 225 of file LOW_compJalousieController.cpp. References averageMillis(), LOW_platformMisc::diffTimestamp(), down2stopDelay, down2upDelay, LOW_platformMisc::getTimestamp(), jcLock, LOW_platformMisc::timestamp_t::milSec, moveDown(), moveUp(), stop2downDelay, stop2upDelay, stopMove(), up2downDelay, and up2stopDelay. |
|
Definition at line 327 of file LOW_compJalousieController.cpp. References setDirectionDown(), and setPowerOn(). Referenced by measureTransitionDelays(), LOW_compJalousieController::manualMove::moveDown(), and moveDownStop(). |
|
Definition at line 361 of file LOW_compJalousieController.cpp. References down2stopDelay, LOW_platformMisc::milliSleep(), moveDown(), stopMove(), and up2stopDelay. Referenced by setPosition(). |
|
Definition at line 318 of file LOW_compJalousieController.cpp. References setDirectionUp(), and setPowerOn(). Referenced by measureTransitionDelays(), LOW_compJalousieController::manualMove::moveUp(), and moveUpStop(). |
|
Definition at line 345 of file LOW_compJalousieController.cpp. References LOW_platformMisc::milliSleep(), moveUp(), stopMove(), and up2stopDelay. Referenced by setPosition(). |
|
Definition at line 205 of file LOW_compJalousieController.cpp. References angleClosingTime, and jcLock. |
|
Definition at line 218 of file LOW_compJalousieController.cpp. References angleOpeningTime, and jcLock. |
|
Definition at line 179 of file LOW_compJalousieController.cpp. References closingTime, and jcLock. |
|
Definition at line 407 of file LOW_compJalousieController.cpp. References LOW_devDS2405::cmd_MatchRead(), directionControl, and directionIsDown. Referenced by moveDown(). |
|
Definition at line 419 of file LOW_compJalousieController.cpp. References LOW_devDS2405::cmd_MatchRead(), directionControl, and directionIsDown. Referenced by moveUp(), and stopMove(). |
|
Definition at line 192 of file LOW_compJalousieController.cpp. References jcLock, and openingTime. |
|
Definition at line 119 of file LOW_compJalousieController.cpp. References angleClosingTime, angleOpeningTime, closingTime, fullMovementAdditionMillis, jcLock, moveDownStop(), moveUpStop(), and openingTime. |
|
Definition at line 395 of file LOW_compJalousieController.cpp. References LOW_devDS2405::cmd_MatchRead(), powerControl, and powerIsOn. Referenced by stopMove(). |
|
Definition at line 383 of file LOW_compJalousieController.cpp. References LOW_devDS2405::cmd_MatchRead(), powerControl, and powerIsOn. Referenced by moveDown(), and moveUp(). |
|
Definition at line 297 of file LOW_compJalousieController.cpp. References down2stopDelay, down2upDelay, jcLock, stop2downDelay, stop2upDelay, up2downDelay, and up2stopDelay. |
|
Definition at line 336 of file LOW_compJalousieController.cpp. References setDirectionUp(), and setPowerOff(). Referenced by measureTransitionDelays(), moveDownStop(), moveUpStop(), LOW_compJalousieController::manualMove::stopMove(), and ~LOW_compJalousieController(). |
|
Definition at line 163 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController(), measureTransitionDelays(), setAngleClosingTime(), setAngleOpeningTime(), setClosingTime(), setOpeningTime(), setPosition(), setTransitionDelays(), and ~LOW_compJalousieController(). |
|
Definition at line 162 of file LOW_compJalousieController.h. |
|
Definition at line 194 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController::jcLock::jcLock(), LOW_compJalousieController(), LOW_compJalousieController::jcLock::~jcLock(), and ~LOW_compJalousieController(). |
|
Definition at line 186 of file LOW_compJalousieController.h. Referenced by getAngleClosingTime(), setAngleClosingTime(), and setPosition(). |
|
Definition at line 187 of file LOW_compJalousieController.h. Referenced by getAngleOpeningTime(), setAngleOpeningTime(), and setPosition(). |
|
Definition at line 184 of file LOW_compJalousieController.h. Referenced by getClosingTime(), setClosingTime(), and setPosition(). |
|
Definition at line 183 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController(), setDirectionDown(), and setDirectionUp(). |
|
Definition at line 233 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController(), setDirectionDown(), and setDirectionUp(). |
|
Definition at line 191 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), moveDownStop(), and setTransitionDelays(). |
|
Definition at line 193 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), and setTransitionDelays(). |
|
Definition at line 172 of file LOW_compJalousieController.h. Referenced by setPosition(). |
|
Definition at line 35 of file LOW_compJalousieController.cpp. |
|
Definition at line 181 of file LOW_compJalousieController.h. |
|
Definition at line 185 of file LOW_compJalousieController.h. Referenced by getOpeningTime(), setOpeningTime(), and setPosition(). |
|
Definition at line 182 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController(), setPowerOff(), and setPowerOn(). |
|
Definition at line 232 of file LOW_compJalousieController.h. Referenced by LOW_compJalousieController(), setPowerOff(), and setPowerOn(). |
|
Definition at line 190 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), and setTransitionDelays(). |
|
Definition at line 188 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), and setTransitionDelays(). |
|
Definition at line 192 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), and setTransitionDelays(). |
|
Definition at line 189 of file LOW_compJalousieController.h. Referenced by getTransitionDelays(), LOW_compJalousieController(), measureTransitionDelays(), moveDownStop(), moveUpStop(), and setTransitionDelays(). |