Conscience Core
Enumerations | Functions
CscRsInterface.cpp File Reference
#include "CscRsInterface.h"
#include <iostream>
#include <string.h>
#include "Util/system.h"
#include "Util/os.h"
#include "termios.h"
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

Enumerations

enum  CscRsInterfacePelcoP {
  PanLeft = 0, PanRight = 1, TiltUp = 2, TiltDown = 3,
  UpLeft = 4, UpRight = 5, DownLeft = 6, DownRight = 7,
  StopAll = 8
}
 

Functions

char calculateCheckSum (signed char buffer[8])
 
float degToRad (float x)
 
float shortestSignedDistanceBetweenTwoAngles (float currentAngle, float targetAngle)
 

Enumeration Type Documentation

◆ CscRsInterfacePelcoP

Enumerator
PanLeft 
PanRight 
TiltUp 
TiltDown 
UpLeft 
UpRight 
DownLeft 
DownRight 
StopAll 

Function Documentation

◆ calculateCheckSum()

char calculateCheckSum ( signed char  buffer[8])

◆ degToRad()

float degToRad ( float  x)

◆ shortestSignedDistanceBetweenTwoAngles()

float shortestSignedDistanceBetweenTwoAngles ( float  currentAngle,
float  targetAngle 
)