-
Notifications
You must be signed in to change notification settings - Fork 0
/
DsaController.h
45 lines (39 loc) · 982 Bytes
/
DsaController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __DSA_CONTROLLER__HH
#define __DSA_CONTROLLER__HH
#include "ccardDefs.h"
namespace IrvCS
{
/**
* Abstract class to represent the Deployable Solar Array controller.
**/
class DsaController
{
public:
DsaController()
{
}
virtual ~DsaController()
{
}
/**
* Perform the specified DSA command/operation.
* @param id the id of the DSA
* @param cmd the command to perform (Release or Deploy)
* @param timeoutSec the timeout in seconds
* @return StatOk if successful
* @return OpStatus (<0)
*/
virtual OpStatus performDsaOperation(DsaId id, DsaCmd cmd, int timeoutSec) = 0;
/**
* Get the sensor status for the given DSA/Cmd
*
* @param id the id of the DSA
* @param cmd the command to perform (Release or Deploy)
* @return 0 if off
* @return 1 if on
* @return <0 if error
**/
virtual int getSensorStatus(DsaId id, DsaCmd cmd) = 0;
};
}
#endif