forked from PanGalacticTech/Kerbal_Controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpers.cpp
More file actions
34 lines (28 loc) · 709 Bytes
/
Copy pathHelpers.cpp
File metadata and controls
34 lines (28 loc) · 709 Bytes
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
/** @file Helpers.cpp
Helper functions to send outgoing messages.
*/
#include "KerbalSimpit.h"
void KerbalSimpit::activateCAG(byte actiongroup)
{
send(CAGACTIVATE_MESSAGE, &actiongroup, 1);
}
void KerbalSimpit::deactivateCAG(byte actiongroup)
{
send(CAGDEACTIVATE_MESSAGE, &actiongroup, 1);
}
void KerbalSimpit::toggleCAG(byte actiongroup)
{
send(CAGTOGGLE_MESSAGE, &actiongroup, 1);
}
void KerbalSimpit::activateAction(byte action)
{
send(AGACTIVATE_MESSAGE, &action, 1);
}
void KerbalSimpit::deactivateAction(byte action)
{
send(AGDEACTIVATE_MESSAGE, &action, 1);
}
void KerbalSimpit::toggleAction(byte action)
{
send(AGTOGGLE_MESSAGE, &action, 1);
}