Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_history.h
Go to the documentation of this file.
1/*
2 * sc_history.h
3 * SCControl
4 *
5 * Created by David Wilson on 7/24/08.
6 * Copyright 2008 Princeton Satellite Systems. All rights reserved.
7 *
8 */
9
12
13#ifndef __SC_HISTORY__
14#define __SC_HISTORY__
15
16#include <MatrixLib/MatrixLib.h>
17
19
20
21
31{
32 public:
33 sc_history();
35
37 void store_matrix(double ts,const ml_matrix &data);
38
40 double start_time();
42 double end_time();
44 bool data_for_time(double &ts,ml_matrix &data);
46 bool data_after_time(double &ts,ml_matrix &data);
48 void clear_data_until(double ts);
49
50 private:
51 sc_history_segment *first;
54};
55
56#endif
Segment of the spacecraft history.
Definition: sc_history.cc:18
Spacecraft historical data storage and retrieval.
Definition: sc_history.h:31
double start_time()
Retrieve the first timestamp stored.
Definition: sc_history.cc:94
bool data_after_time(double &ts, ml_matrix &data)
Retrieve the first data point after a specific timestamp.
Definition: sc_history.cc:150
void clear_data_until(double ts)
Remove old historical data.
Definition: sc_history.cc:180
void store_matrix(double ts, const ml_matrix &data)
Store a time-tagged matrix.
Definition: sc_history.cc:63
double end_time()
Retrieve the last stored timestamp.
Definition: sc_history.cc:104
bool data_for_time(double &ts, ml_matrix &data)
Retrieve the data for a specific timestamp.
Definition: sc_history.cc:116