Skip to content

Commit

Permalink
fix: 로봇아이 웹연결 이미지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnks2U committed Sep 5, 2024
1 parent 30859ec commit 829d9a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
Binary file modified images/hw_lite/robotis_robotai_lite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 7 additions & 11 deletions src/playground/blocks/hardwareLite/block_codewiz_lite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

(function() {
(function () {
Entry.CodeWizLite = new (class CodeWizLite {
constructor() {
this.id = '011201';
Expand Down Expand Up @@ -245,7 +245,7 @@
this.HUSKY = {
CENT_X: 160,
CENT_Y: 120,
getDist: function(x, y) {
getDist: function (x, y) {
return Math.sqrt(Math.pow(this.CENT_X - x, 2) + Math.pow(this.CENT_Y - y, 2));
},
};
Expand Down Expand Up @@ -385,11 +385,7 @@
// }
// return Entry.generateHash(6) + opcode;
// Symbol을 쓰면 hw로 넘길수있나 -> 있으면 지금과 비교해서 속도는?
return (
Date.now()
.toString()
.substring(6) + opcode
);
return Date.now().toString().substring(6) + opcode;
}

// 코드위즈에 보낼 데이터를 만드는 함수입니다.
Expand Down Expand Up @@ -954,7 +950,7 @@
},
isNotFor: ['CodeWizLite'],
class: 'CodeWizLite_default_sensor',
func: function(sprite, script) {
func: function (sprite, script) {
var sensor = script.getField('SENSOR', script);
var hw_sensorData = Entry.CodeWizLite.sensorData;
return hw_sensorData[sensor] ?? 0;
Expand Down Expand Up @@ -989,7 +985,7 @@
},
isNotFor: ['CodeWizLite'],
class: 'CodeWizLite_default_sensor',
func: function(sprite, script) {
func: function (sprite, script) {
var sensor = script.getField('GYRO_TYPE', script);
var hw_sensorData = Entry.CodeWizLite.sensorData;
return hw_sensorData[sensor] ?? 0;
Expand Down Expand Up @@ -1025,7 +1021,7 @@
},
isNotFor: ['CodeWizLite'],
class: 'CodeWizLite_default_sensor',
func: function(sprite, script) {
func: function (sprite, script) {
var sensor = script.getField('SWITCH', script);
var hw_sensorData = Entry.CodeWizLite.sensorData;
return hw_sensorData[sensor] ?? false;
Expand Down Expand Up @@ -1065,7 +1061,7 @@
},
isNotFor: ['CodeWizLite'],
class: 'CodeWizLite_default_sensor',
func: function(sprite, script) {
func: function (sprite, script) {
var sensor = script.getField('SWITCH', script);
var hw_sensorData = Entry.CodeWizLite.sensorData;
return hw_sensorData[sensor] ?? 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ let beat_per_minute = 75;
constructor() {
this.id = '070B01';
this.url = 'http://www.robotis.com';
this.imageName = 'robotis_robotai.png';
this.imageName = 'robotis_robotai_lite.png';
this.name = 'RobotisRobotaiLite';
this.blockMenuBlocks = [
// 주행 제어
Expand Down

0 comments on commit 829d9a7

Please sign in to comment.