🧹 Removes notification event service
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
const updateAngles = (name: string, angle: number) => {
|
||||
modelTargetAngles[$jointNames.indexOf(name)] = angle * (180 / Math.PI);
|
||||
Throttler.throttle(() => servoAnglesOut.set(modelTargetAngles), 100)
|
||||
Throttler.throttle(() => servoAnglesOut.set(modelTargetAngles.map(num => Math.round(num))), 100)
|
||||
};
|
||||
|
||||
const createScene = async () => {
|
||||
|
||||
@@ -15,7 +15,7 @@ let analytics_data = {
|
||||
cpu_usage: <number[]>[]
|
||||
};
|
||||
|
||||
const maxAnalyticsData = 1000; // roughly 33 Minutes of data at 1 update per 2 seconds
|
||||
const maxAnalyticsData = 100;
|
||||
|
||||
function createAnalytics() {
|
||||
const { subscribe, update } = writable(analytics_data);
|
||||
|
||||
@@ -26,6 +26,6 @@ export const outControllerData = writable(new Array([0, 0, 0, 0, 0, 70, 0]));
|
||||
export const input: Writable<ControllerInput> = writable({
|
||||
left: { x: 0, y: 0 },
|
||||
right: { x: 0, y: 0 },
|
||||
height: 70,
|
||||
speed: 0
|
||||
height: 50,
|
||||
speed: 50
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user