-
To replicate: using import { Input, Message } from "./types";
type Output = {
world_accel: number;
};
export const inputs = ["/imu"];
export const output = "/studio_script/output_topic";
export default function script(event: Input<"/imu">): Output {
return {
world_accel: Math.hypot(
event.message.linear_accel!.x!,
event.message.linear_accel!.y!,
event.message.linear_accel!.z!,
),
};
} Then add I'm using the desktop app, on ubuntu 20.04, Foxglove Studio version 2.12.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@bryfox I think you are aware of this and working on a fix? |
Beta Was this translation helpful? Give feedback.
-
A fix for this is rolling out now, and it'll be included in the next Desktop release (>2.12.1). I was able to reproduce the issue, and see the fix. If you still encounter problems, please re-open. |
Beta Was this translation helpful? Give feedback.
A fix for this is rolling out now, and it'll be included in the next Desktop release (>2.12.1). I was able to reproduce the issue, and see the fix. If you still encounter problems, please re-open.