From a3c4a4f47719857b99d3951bd542a7b344403c65 Mon Sep 17 00:00:00 2001 From: SimonR99 Date: Tue, 12 Dec 2023 22:27:33 -0500 Subject: [PATCH] remove deprecated seq header --- src/renderer/inputSystem/flipperModeActions.ts | 3 --- src/renderer/utils/ros/rosMsgs.types.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/src/renderer/inputSystem/flipperModeActions.ts b/src/renderer/inputSystem/flipperModeActions.ts index eb2cdd9d..a9bd48a3 100644 --- a/src/renderer/inputSystem/flipperModeActions.ts +++ b/src/renderer/inputSystem/flipperModeActions.ts @@ -13,8 +13,6 @@ const joyTopic: TopicOptions = { messageType: 'sensor_msgs/Joy', }; -let joySeqId = 0; - const mapGamepadToJoy = (gamepad: Gamepad): IJoyMsg => { const d = new Date(); const seconds = Math.round(d.getTime() / 1000); @@ -39,7 +37,6 @@ const mapGamepadToJoy = (gamepad: Gamepad): IJoyMsg => { const buttons = gamepad.buttons.map((x) => Math.floor(x.value)); return { header: { - seq: joySeqId++, stamp: { sec: seconds, nsecs: 0, diff --git a/src/renderer/utils/ros/rosMsgs.types.ts b/src/renderer/utils/ros/rosMsgs.types.ts index 387f7624..5ae86c89 100644 --- a/src/renderer/utils/ros/rosMsgs.types.ts +++ b/src/renderer/utils/ros/rosMsgs.types.ts @@ -1,7 +1,6 @@ import { Vector3 } from '@/renderer/utils/math/types'; export interface IJoyMsg { header: { - seq: number; stamp: { sec: number; nsecs: number;