Skip to content

Commit

Permalink
Merge pull request #188 from clubcapra/add_rove_support
Browse files Browse the repository at this point in the history
support rove
  • Loading branch information
SimonR99 authored Mar 19, 2024
2 parents 9149077 + a3c4a4f commit e527e7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/renderer/inputSystem/flipperModeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/renderer/utils/ros/rosMsgs.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Vector3 } from '@/renderer/utils/math/types';
export interface IJoyMsg {
header: {
seq: number;
stamp: {
sec: number;
nsecs: number;
Expand Down

0 comments on commit e527e7b

Please sign in to comment.