From 618f2c02e5e4a4d5a1f22d8129e8af119d279fa8 Mon Sep 17 00:00:00 2001 From: kalman Date: Fri, 21 Dec 2018 22:09:49 +0800 Subject: [PATCH] format(device/type.h):add white space --- src/mynteye/device/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mynteye/device/types.h b/src/mynteye/device/types.h index f04d09c..a454857 100644 --- a/src/mynteye/device/types.h +++ b/src/mynteye/device/types.h @@ -314,12 +314,12 @@ struct ImuSegment { explicit ImuSegment(ImuGroupS2 group) : frame_id(group.frame_id), timestamp(group.timestamp), flag(group.flag), temperature(group.temperature) { - accel[0] = (flag == 1)?group.accel_or_gyro[0]:0; - accel[1] = (flag == 1)?group.accel_or_gyro[1]:0; - accel[2] = (flag == 1)?group.accel_or_gyro[2]:0; - gyro[0] = (flag == 2)?group.accel_or_gyro[0]:0; - gyro[1] = (flag == 2)?group.accel_or_gyro[1]:0; - gyro[2] = (flag == 2)?group.accel_or_gyro[2]:0; + accel[0] = (flag == 1) ? group.accel_or_gyro[0] : 0; + accel[1] = (flag == 1) ? group.accel_or_gyro[1] : 0; + accel[2] = (flag == 1) ? group.accel_or_gyro[2] : 0; + gyro[0] = (flag == 2) ? group.accel_or_gyro[0] : 0; + gyro[1] = (flag == 2) ? group.accel_or_gyro[1] : 0; + gyro[2] = (flag == 2) ? group.accel_or_gyro[2] : 0; } explicit ImuSegment(std::uint32_t timestamp, ImuGroupS1 group) {