void remove_old_up_time(void);
unsigned long long is_facing_down();
unsigned long long was_facing_up();
-
};
#endif /* __FACE_DOWN_ALG_IMPL_H__ */
bool m_some_speed;
sensor_frequency_compensator m_acceleration_compensator;
-
};
#endif /* __PEDOMETER_H__ */
m_enable_magnetic = true;
if (get_orientation())
store_orientation();
-
}
bool fusion_base::get_rv(unsigned long long ×tamp, float &x, float &y, float &z, float &w)
T_R1_C1_R2_C2 bool operator ==(const matrix<T, R1, C1> m1, const matrix<T, R2, C2> m2)
{
- if ((R1 == R2) && (C1 == C2))
- {
+ if ((R1 == R2) && (C1 == C2)) {
for (int i = 0; i < R1; i++)
for (int j = 0; j < C2; j++)
if (m1.m_mat[i][j] != m2.m_mat[i][j])
return false;
+ return true;
}
- else
- return false;
- return true;
+ return false;
}
T_R1_C1_R2_C2 bool operator !=(const matrix<T, R1, C1> m1, const matrix<T, R2, C2> m2)
T_S1_S2 bool operator ==(const vect<T, S1> v1, const vect<T, S2> v2)
{
- if (S1 == S2)
- {
+ if (S1 == S2) {
for (int i = 0; i < S1; i++)
if (v1.m_vec[i] != v2.m_vec[i])
return false;
+ return true;
}
- else
- return false;
- return true;
+ return false;
}
T_S1_S2 bool operator !=(const vect<T, S1> v1, const vect<T, S2> v2)
* sensorhub (bytes) command [0~1] delaytime [2~5] data[6~83]
* shell (argv) command [0~2] delaytime [3] data[4~81]
*/
- char test_data[MAX_DATA_SIZE] = {SHUB_INST_LIB_ADD, SHUB_LOOP_BACK_LIB,};
+ char test_data[MAX_DATA_SIZE] = {SHUB_INST_LIB_ADD, SHUB_LOOP_BACK_LIB, };
int_to_bytes(atoi(argv[3]), sizeof(int), &(test_data[2]));
for (int i = 4; i < argc; i++)
sensor = sensord_get_sensor(CONTEXT_SENSOR);
handle = sensord_connect(sensor);
- char test_data[4] = {SHUB_INST_LIB_REMOVE, SHUB_LOOP_BACK_LIB,};
+ char test_data[4] = {SHUB_INST_LIB_REMOVE, SHUB_LOOP_BACK_LIB, };
sensord_set_attribute_str(handle, 0, test_data, sizeof(test_data));
sensord_disconnect(handle);
for (auto it = testcases.begin(); it != testcases.end();
it = testcases.upper_bound(it->first)) {
-
auto range = testcases.equal_range(it->first);
_I("[%s]\n", it->first.c_str());
message msg;
message reply;
- char buf[MAX_BUF_SIZE] = {'1', '1', '1',};
+ char buf[MAX_BUF_SIZE] = {'1', '1', '1', };
msg.enclose(buf, MAX_BUF_SIZE);
int ret;
message msg;
message reply;
- char buf[MAX_BUF_SIZE] = {'1', '1', '1',};
+ char buf[MAX_BUF_SIZE] = {'1', '1', '1', };
msg.enclose(buf, MAX_BUF_SIZE);
int ret;
message msg;
message reply;
- char buf[MAX_BUF_SIZE] = {'1', '1', '1',};
+ char buf[MAX_BUF_SIZE] = {'1', '1', '1', };
msg.enclose(buf, MAX_BUF_SIZE);