mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
fix song hopefully?
This commit is contained in:
@@ -6,7 +6,6 @@ const HELP_HORN_DURATION_MS = 250;
|
||||
const HELP_HORN_INTERVAL_MS = 5 * 1000;
|
||||
const HELP_ROOMBA_NOTE = 95;
|
||||
const HELP_ROOMBA_NOTE_DURATION = 16;
|
||||
const HELP_ROOMBA_SONG_SLOT = 4;
|
||||
|
||||
function createHelpHornNotifier({
|
||||
getRover,
|
||||
@@ -73,7 +72,6 @@ function createHelpHornNotifier({
|
||||
issueCommand(id, {
|
||||
type: 'song',
|
||||
song: {
|
||||
slot: HELP_ROOMBA_SONG_SLOT,
|
||||
notes: [{ note: HELP_ROOMBA_NOTE, duration: HELP_ROOMBA_NOTE_DURATION }],
|
||||
},
|
||||
});
|
||||
@@ -138,6 +136,5 @@ module.exports = {
|
||||
HELP_HORN_INTERVAL_MS,
|
||||
HELP_ROOMBA_NOTE,
|
||||
HELP_ROOMBA_NOTE_DURATION,
|
||||
HELP_ROOMBA_SONG_SLOT,
|
||||
createHelpHornNotifier,
|
||||
};
|
||||
|
||||
@@ -8,7 +8,6 @@ const {
|
||||
HELP_HORN_INTERVAL_MS,
|
||||
HELP_ROOMBA_NOTE,
|
||||
HELP_ROOMBA_NOTE_DURATION,
|
||||
HELP_ROOMBA_SONG_SLOT,
|
||||
createHelpHornNotifier,
|
||||
} = require('./hornNotifier');
|
||||
|
||||
@@ -55,7 +54,6 @@ test('starts matching external and Roomba chirps and schedules the agreed cadenc
|
||||
payload: {
|
||||
type: 'song',
|
||||
song: {
|
||||
slot: HELP_ROOMBA_SONG_SLOT,
|
||||
notes: [{ note: HELP_ROOMBA_NOTE, duration: HELP_ROOMBA_NOTE_DURATION }],
|
||||
},
|
||||
},
|
||||
@@ -88,7 +86,6 @@ test('still schedules the Roomba song when the external horn is disabled', () =>
|
||||
payload: {
|
||||
type: 'song',
|
||||
song: {
|
||||
slot: HELP_ROOMBA_SONG_SLOT,
|
||||
notes: [{ note: HELP_ROOMBA_NOTE, duration: HELP_ROOMBA_NOTE_DURATION }],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user