COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
cosmos-defs.h File Reference

COSMOS definitions Definitions specific to the COSMOS environement. More...

#include <map>
#include <vector>
#include <list>
#include <queue>
#include <thread>
#include <mutex>
#include <condition_variable>
Include dependency graph for cosmos-defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COSMOS_MAX_DATA   1024
 
#define COSMOS_MAX_NAME   40
 Largest JSON name. More...
 
#define EVENT_FLAG_WARNING   0x0e00
 8 bit flag, 0 - 7, see EVENT_SCALE_WARNING. More...
 
#define EVENT_SCALE_WARNING   0x0200
 Flash countdown timer (1 = 10sec, 2 = 20sec, 3 = 40sec, 4 = 80sec, 5 = 160sec, 6 = 320sec, 7 = 640sec). More...
 
#define EVENT_FLAG_ALARM   0x0180
 8 bit flag, 0 - 7, see EVENT_SCALE_ALARM. More...
 
#define EVENT_SCALE_ALARM   0x0080
 Audible alarm. More...
 
#define EVENT_FLAG_PRIORITY   0x0070
 3 bit flag, 0 - 7, see EVENT_SCALE_PRIORITY. More...
 
#define EVENT_SCALE_PRIORITY   0x0010
 Event display priority (0 = never , 1 = always, 2 = orbit, 3 = 15min, 4 = 5min, 5 = max zoom) More...
 
#define EVENT_FLAG_COLOR   0x000f
 16 bit flag, see EVENT_SCALE_COLOR. More...
 
#define EVENT_SCALE_COLOR   0x0001
 Display color (1=gray, 2= magenta, 3= cyan, 4= green, 5=orange, 6= yellow, 7=red, 8=brown, 9=white) More...
 
#define EVENT_FLAG_COUNTDOWN   0x1000
 Show a countdown timer for this event. More...
 
#define EVENT_FLAG_EXIT   0x2000
 Event is the exit member of a set of paired events. More...
 
#define EVENT_FLAG_PAIR   0x4000
 Event is part of a pair (eg. enter and leave Umbra). More...
 
#define EVENT_FLAG_ACTUAL   0x8000
 Event actualy happened (versus being predicted). More...
 
#define EVENT_FLAG_CONDITIONAL   0x10000
 Conditional event. More...
 
#define EVENT_FLAG_REPEAT   0x20000
 Repeating event. More...
 
#define EVENT_FLAG_TRUE   0x40000
 Event true last time. More...
 
#define EVENT_FLAG_SOLO   0x80000
 Command Event should run by itself. More...
 
#define EVENT_TYPE_REQUEST   0x1001
 
#define EVENT_TYPE_PHYSICAL   0x1000
 Physical Events. More...
 
#define EVENT_TYPE_LATA   0x1101
 
#define EVENT_TYPE_LATD   0x1102
 
#define EVENT_TYPE_LATMAX   0x1110
 
#define EVENT_TYPE_LATMIN   0x1120
 
#define EVENT_TYPE_APOGEE   0x1201
 
#define EVENT_TYPE_PERIGEE   0x1202
 
#define EVENT_TYPE_UMBRA   0x1206
 
#define EVENT_TYPE_PENUMBRA   0x1208
 
#define EVENT_TYPE_GS   0x1400
 
#define EVENT_TYPE_GS5   0x1401
 
#define EVENT_TYPE_GS10   0x1402
 
#define EVENT_TYPE_GSMAX   0x1404
 
#define EVENT_TYPE_TARG   0x1800
 
#define EVENT_TYPE_TARGMIN   0x1801
 
#define EVENT_TYPE_COMMAND   0x2000
 
#define EVENT_TYPE_BUS   0x2100
 
#define EVENT_TYPE_EPS   0x2110
 
#define EVENT_TYPE_ADCS   0x2120
 
#define EVENT_TYPE_PAYLOAD   0x2400
 
#define EVENT_TYPE_SYSTEM   0x2800
 
#define EVENT_TYPE_LOG   0x4000
 
#define EVENT_TYPE_MESSAGE   0x8000
 
#define PANEL_TYPE_EPS   1
 
#define PANEL_TYPE_ADCS   2
 
#define PANEL_TYPE_OBCS   3
 
#define PANEL_TYPE_COMM   4
 
#define PANEL_TYPE_PLOAD   5
 
#define PANEL_TYPE_TCS   6
 
#define PANEL_TYPE_PROP   7
 
#define PHYSICS_MODE_ACTUAL   0
 
#define PHYSICS_MODE_LVLH   1
 
#define PHYSICS_MODE_SURFACE   2
 
#define COSMOSMCAST   "225.1.1.1"
 COSMOS heartbeat Multicast address. More...
 

Enumerations

enum  PIECE {
  PIECE_TYPE_EXTERNAL_PANEL =0, PIECE_TYPE_INTERNAL_PANEL =1, PIECE_TYPE_BOX =2, PIECE_TYPE_CYLINDER =3,
  PIECE_TYPE_SPHERE =4, PIECE_TYPE_DIMENSIONLESS =5, PIECE_TYPE_CONE =6, PIECE_TYPE_COUNT,
  PIECE_TYPE_NONE =UINT16_MAX
}
 
enum  NODE_TYPE : uint16_t {
  NODE_TYPE_SATELLITE =0, NODE_TYPE_GROUNDSTATION =1, NODE_TYPE_MOC =2, NODE_TYPE_VEHICLE =3,
  NODE_TYPE_UAV =4, NODE_TYPE_TARGET =5, NODE_TYPE_BALLOON =6, NODE_TYPE_SHIP =7,
  NODE_TYPE_DATA =8, NODE_TYPE_COMPUTER =9, NODE_TYPE_SUN =10, NODE_TYPE_MOON =11,
  NODE_TYPE_MARS =12, NODE_TYPE_LOCATION =13, NODE_TYPE_TESTBED =14, NODE_TYPE_COUNT,
  NODE_TYPE_NONE =UINT16_MAX
}
 
enum  NODE_FLAG : uint16_t {
  NODE_FLAG_NONE =0, NODE_FLAG_CHARGING =0x0001, NODE_FLAG_LAUNCHED =0x0002, NODE_FLAG_DEPLOYED =0x0004,
  NODE_FLAG_BOOTCHECK =0x0008, NODE_FLAG_ALL =UINT16_MAX
}
 

Detailed Description

COSMOS definitions Definitions specific to the COSMOS environement.