mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
horn scroll and lower limits!!
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
HORN_HEAT_COOL_PER_SEC,
|
||||
HORN_HEAT_RESUME_THRESHOLD,
|
||||
HORN_HEAT_UP_PER_SEC,
|
||||
HORN_MAX_FREQUENCY,
|
||||
HORN_MAX_MS,
|
||||
MANUAL_DOCK_ASSIST_MAX_SPEED,
|
||||
SONG_DEFAULT_NOTE,
|
||||
@@ -424,7 +425,7 @@ export function ControlSystemProvider({ children }) {
|
||||
.map((value) => {
|
||||
const num = Number(value);
|
||||
if (!Number.isFinite(num)) return 0;
|
||||
return num <= 0 ? 0 : Math.min(5000, Math.round(num));
|
||||
return num <= 0 ? 0 : Math.min(HORN_MAX_FREQUENCY, Math.round(num));
|
||||
});
|
||||
return { waveform, freqs: normalized };
|
||||
}, [hornSettings]);
|
||||
|
||||
@@ -22,6 +22,7 @@ export const SONG_DEFAULT_DURATION = 8;
|
||||
export const SONG_REPEAT_MS = 250;
|
||||
|
||||
export const HORN_MAX_MS = 4000;
|
||||
export const HORN_MAX_FREQUENCY = 2000;
|
||||
export const HORN_HEAT_UP_PER_SEC = 0.4;
|
||||
export const HORN_HEAT_COOL_PER_SEC = 0.2;
|
||||
export const HORN_HEAT_RESUME_THRESHOLD = 0.8;
|
||||
|
||||
Reference in New Issue
Block a user