Yebal
This commit is contained in:
21
.idea/workspace.xml
generated
21
.idea/workspace.xml
generated
@@ -14,10 +14,9 @@
|
|||||||
</configurations>
|
</configurations>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="00599d5b-7eb5-44da-ad7f-98bf42384c16" name="Changes" comment="Crack butt">
|
<list default="true" id="00599d5b-7eb5-44da-ad7f-98bf42384c16" name="Changes" comment="Updated incoming_request_handlers.js to match database querying">
|
||||||
<change afterPath="$PROJECT_DIR$/code/web/pepper_data_test.js" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/code/web/incoming_request_handlers.js" beforeDir="false" afterPath="$PROJECT_DIR$/code/web/incoming_request_handlers.js" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/code/web/pepper_data_test.js" beforeDir="false" afterPath="$PROJECT_DIR$/code/web/pepper_data_test.js" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@@ -210,7 +209,8 @@
|
|||||||
<workItem from="1716674767699" duration="21000" />
|
<workItem from="1716674767699" duration="21000" />
|
||||||
<workItem from="1716889548355" duration="3475000" />
|
<workItem from="1716889548355" duration="3475000" />
|
||||||
<workItem from="1716904079045" duration="2259000" />
|
<workItem from="1716904079045" duration="2259000" />
|
||||||
<workItem from="1716977405893" duration="336000" />
|
<workItem from="1716977405893" duration="466000" />
|
||||||
|
<workItem from="1716983084935" duration="3759000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="Changes">
|
<task id="LOCAL-00001" summary="Changes">
|
||||||
<created>1713528225837</created>
|
<created>1713528225837</created>
|
||||||
@@ -384,7 +384,15 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1716891155110</updated>
|
<updated>1716891155110</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="23" />
|
<task id="LOCAL-00023" summary="Updated incoming_request_handlers.js to match database querying">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1716977853269</created>
|
||||||
|
<option name="number" value="00023" />
|
||||||
|
<option name="presentableId" value="LOCAL-00023" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1716977853269</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="24" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@@ -424,6 +432,7 @@
|
|||||||
<MESSAGE value="Commit crack cocaine" />
|
<MESSAGE value="Commit crack cocaine" />
|
||||||
<MESSAGE value="Commit war crimes in formal Yugoslavia" />
|
<MESSAGE value="Commit war crimes in formal Yugoslavia" />
|
||||||
<MESSAGE value="Crack butt" />
|
<MESSAGE value="Crack butt" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Crack butt" />
|
<MESSAGE value="Updated incoming_request_handlers.js to match database querying" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Updated incoming_request_handlers.js to match database querying" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@@ -1,24 +1,22 @@
|
|||||||
const address = 'http://145.92.8.135:3445/';
|
const address = 'http://192.168.137.45:3445';
|
||||||
|
const amount = 10;
|
||||||
const data = {
|
for ( let i = 0; i < amount; i++)
|
||||||
rotationX: 1,
|
|
||||||
rotationY: .4,
|
|
||||||
rotationZ: .1,
|
|
||||||
accelerationX: 1,
|
|
||||||
accelerationY: 2,
|
|
||||||
accelerationZ: 4,
|
|
||||||
deviceId: 1,
|
|
||||||
type: 'data'
|
|
||||||
};
|
|
||||||
|
|
||||||
for ( let i = 0; i < 10; i++)
|
|
||||||
{
|
{
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("Sending data");
|
console.log("Sending data");
|
||||||
fetch(address, {
|
fetch(address, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify({
|
||||||
|
rotationX: 0,
|
||||||
|
rotationY: 0,
|
||||||
|
rotationZ: 0,
|
||||||
|
accelerationX: Math.PI / amount * i,
|
||||||
|
accelerationY: 0,
|
||||||
|
accelerationZ: 0,
|
||||||
|
type: 'data',
|
||||||
|
deviceId: 0
|
||||||
|
})
|
||||||
});
|
});
|
||||||
}, i * 1000);
|
}, i * 1000);
|
||||||
}
|
}
|
Reference in New Issue
Block a user