This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vector<int> ViconData::footswitchAnalogToVector(double analog_val) { | |
int sensor_count = 4; | |
float discrete_max = (float)pow(2.0, 4)-1; | |
float analog_max = 4; | |
int discrete_val = (int)floor(analog_val * discrete_max / analog_max + 0.5); | |
vector<int> ret; | |
for (int i = 0; i < sensor_count; i++) { | |
if (discrete_val&1) | |
ret.push_back(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto |