Instrument Neutral Distributed Interface INDI 2.2.5
test_lx200_onstep.cpp File Reference
#include <gtest/gtest.h>
#include <atomic>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <map>
#include <mutex>
#include <pty.h>
#include <regex>
#include <string>
#include <termios.h>
#include <thread>
#include <unistd.h>
#include <vector>
#include "indilogger.h"
#include "drivers/telescope/lx200_OnStep.h"

Go to the source code of this file.

Functions

 TEST (LX200OnStepTest, gotoToCurrentPositionIsAnswered)
 TEST (LX200OnStepTest, gotoWithoutPositionChangeIsAnswered)
 TEST (LX200OnStepTest, realSlewStaysBusyUntilOnStepReportsTracking)
 TEST (LX200OnStepTest, missedStatusReplyDuringGotoIsNotAnError)
 TEST (LX200OnStepTest, parkStaysBusyUntilOnStepReportsParked)
 TEST (LX200OnStepTest, failedParkIsReported)
 TEST (LX200OnStepTest, parkWithoutParkedStatusTimesOut)
 TEST (LX200OnStepTest, lostConnectionFailsPollAfterThreeMissedReplies)
 TEST (LX200OnStepTest, gotoStoppedAtLimitIsReported)
 TEST (LX200OnStepTest, gotoNotStartedAtLimitIsReported)
 TEST (LX200OnStepTest, idleWithoutGotoErrorIsNotAnError)
int main (int argc, char **argv)

Variables

const char * STATUS_IDLE = "nNpa/ET160"
const char * STATUS_PARKING = "nIa/ET160"
const char * STATUS_PARKED = "nNPa/ET160"
const char * STATUS_PARK_FAILED = "nNFa/ET160"
const char * STATUS_MERIDIAN_LIMIT = "nNpa/ET167"

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 620 of file test_lx200_onstep.cpp.

◆ TEST() [1/11]

TEST ( LX200OnStepTest ,
failedParkIsReported  )

Definition at line 443 of file test_lx200_onstep.cpp.

◆ TEST() [2/11]

TEST ( LX200OnStepTest ,
gotoNotStartedAtLimitIsReported  )

Definition at line 557 of file test_lx200_onstep.cpp.

◆ TEST() [3/11]

TEST ( LX200OnStepTest ,
gotoStoppedAtLimitIsReported  )

Definition at line 527 of file test_lx200_onstep.cpp.

◆ TEST() [4/11]

TEST ( LX200OnStepTest ,
gotoToCurrentPositionIsAnswered  )

Definition at line 300 of file test_lx200_onstep.cpp.

◆ TEST() [5/11]

TEST ( LX200OnStepTest ,
gotoWithoutPositionChangeIsAnswered  )

Definition at line 321 of file test_lx200_onstep.cpp.

◆ TEST() [6/11]

TEST ( LX200OnStepTest ,
idleWithoutGotoErrorIsNotAnError  )

Definition at line 580 of file test_lx200_onstep.cpp.

◆ TEST() [7/11]

TEST ( LX200OnStepTest ,
lostConnectionFailsPollAfterThreeMissedReplies  )

Definition at line 499 of file test_lx200_onstep.cpp.

◆ TEST() [8/11]

TEST ( LX200OnStepTest ,
missedStatusReplyDuringGotoIsNotAnError  )

Definition at line 374 of file test_lx200_onstep.cpp.

◆ TEST() [9/11]

TEST ( LX200OnStepTest ,
parkStaysBusyUntilOnStepReportsParked  )

Definition at line 410 of file test_lx200_onstep.cpp.

◆ TEST() [10/11]

TEST ( LX200OnStepTest ,
parkWithoutParkedStatusTimesOut  )

Definition at line 466 of file test_lx200_onstep.cpp.

◆ TEST() [11/11]

TEST ( LX200OnStepTest ,
realSlewStaysBusyUntilOnStepReportsTracking  )

Definition at line 341 of file test_lx200_onstep.cpp.

Variable Documentation

◆ STATUS_IDLE

const char* STATUS_IDLE = "nNpa/ET160"

Definition at line 402 of file test_lx200_onstep.cpp.

◆ STATUS_MERIDIAN_LIMIT

const char* STATUS_MERIDIAN_LIMIT = "nNpa/ET167"

Definition at line 523 of file test_lx200_onstep.cpp.

◆ STATUS_PARK_FAILED

const char* STATUS_PARK_FAILED = "nNFa/ET160"

Definition at line 405 of file test_lx200_onstep.cpp.

◆ STATUS_PARKED

const char* STATUS_PARKED = "nNPa/ET160"

Definition at line 404 of file test_lx200_onstep.cpp.

◆ STATUS_PARKING

const char* STATUS_PARKING = "nIa/ET160"

Definition at line 403 of file test_lx200_onstep.cpp.