COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
GS-232B controller includes. More...
#include "support/configCosmos.h"
#include "math/mathlib.h"
#include "support/cosmos-errno.h"
#include "device/general/cssl_lib.h"
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | gs232b_state |
GS-232B state. More... | |
Macros | |
#define | GS232B_ID 1 |
#define | GS232B_BAUD 9600 |
#define | GS232B_BITS 8 |
#define | GS232B_PARITY 0 |
#define | GS232B_STOPBITS 1 |
#define | GS_STATE_STOWED 0 |
#define | GS_STATE_FIXED 1 |
#define | GS_STATE_SEEKING 2 |
#define | GS_STATE_TRACKING 3 |
Functions | |
int32_t | gs232b_connect (string dev) |
int32_t | gs232b_disconnect () |
int32_t | gs232b_calibrate_offset (int32_t axis) |
float | gs232b_get_az () |
float | gs232b_get_el () |
int32_t | gs232b_get_az_el (float &az, float &el) |
float | gs232b_get_az_offset () |
float | gs232b_get_el_offset () |
void | gs232b_get_state (gs232b_state &state) |
int32_t | gs232b_goto (float az, float el) |
int32_t | gs232b_stop () |
int32_t | gs232b_az_speed (int32_t speed) |
int32_t | gs232b_getdata (char *buf, int32_t buflen) |
int32_t | gs232b_send (char *buf, bool force) |
int32_t | gs232b_test () |
int32_t | gs232b_set_sensitivity (float sensitivity) |
GS-232B controller includes.
Contains definitions and functions for running a Yaesu GS-232B controller.
#define GS232B_ID 1 |
#define GS232B_BAUD 9600 |
#define GS232B_BITS 8 |
#define GS232B_PARITY 0 |
#define GS232B_STOPBITS 1 |
#define GS_STATE_STOWED 0 |
#define GS_STATE_FIXED 1 |
#define GS_STATE_SEEKING 2 |
#define GS_STATE_TRACKING 3 |
int32_t gs232b_connect | ( | string | dev | ) |
Connects to a Yaesu GS-232B computer controller, which in turn drives a Yaesu G-5500 antenna controller.
dev | pointer to a character string with the serial port it is connected to. |
int32_t gs232b_disconnect | ( | ) |
Close currently open GS-232B.
int32_t gs232b_calibrate_offset | ( | int32_t | axis | ) |
float gs232b_get_az | ( | ) |
float gs232b_get_el | ( | ) |
int32_t gs232b_get_az_el | ( | float & | az, |
float & | el | ||
) |
float gs232b_get_az_offset | ( | ) |
float gs232b_get_el_offset | ( | ) |
void gs232b_get_state | ( | gs232b_state & | state | ) |
int32_t gs232b_goto | ( | float | az, |
float | el | ||
) |
int32_t gs232b_stop | ( | ) |
Routine to stop current action. Whatever the current command is, it will cancelled before completeion.
int32_t gs232b_az_speed | ( | int32_t | speed | ) |
int32_t gs232b_getdata | ( | char * | buf, |
int32_t | buflen | ||
) |
Routine to use in blocking mode. Reads the serial port until a New Line is received, then returns entire buffer.
buf | Pointer to a char buffer |
buflen | 32 bit signed integer indicating the maximum size of the buffer |
int32_t gs232b_send | ( | char * | buf, |
bool | force | ||
) |
int32_t gs232b_test | ( | ) |
int32_t gs232b_set_sensitivity | ( | float | sensitivity | ) |