Skip to content
Merged

Master #2505

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0227766
아두이노 5개 기본 블럭 동작 확인
dalgona-edu Apr 6, 2023
bc70a9f
아두이노 5개 기본 블럭 동작 확인
dalgona-edu Apr 6, 2023
8680467
하드웨어 블럭 제작. 동작 x
dalgona-edu Apr 6, 2023
089f465
블럭 기능구현 제외한 부분 수정
dalgona-edu Apr 6, 2023
1c31346
url 수정
dalgona-edu Apr 7, 2023
6ee0f9e
디지털 아날로그 블럭 동작 확인
dalgona-edu Apr 7, 2023
1cf7908
라이브러리 사용 블럭 제외 동작 구현
dalgona-edu Apr 11, 2023
4151a0c
환경 전체 업로드
dalgona-edu Apr 11, 2023
08daaf2
디지털, 아날로그 순서 및 ID값 적용
dalgona-edu Apr 19, 2023
658b205
보드 명칭 변경
dalgona-edu Apr 19, 2023
06ccf70
라이브러리 동작 확인
dalgona-edu Apr 24, 2023
3bb4894
Delete block_proboconnect.js
dalgona-edu Apr 25, 2023
dd1af62
Delete yarn.lock
dalgona-edu Apr 25, 2023
f0b4719
Delete package.json
dalgona-edu Apr 25, 2023
a02ace7
표쌤코딩 기능 추가
pyocoding Apr 26, 2023
70e278f
Upload NeoCannon
TaeJuneJoung Apr 27, 2023
e9af4d6
공유보드 업데이트 2305
pyocoding Apr 28, 2023
83a1909
Merge branch 'develop-hw' of https://github.com/pyocoding/entryjs int…
pyocoding Apr 28, 2023
181712d
ID값 부여
TaeJuneJoung May 3, 2023
d185b63
Revert "Delete package.json"
dalgona-edu May 8, 2023
a9eb0e6
Revert "Delete yarn.lock"
dalgona-edu May 8, 2023
7e21e75
Revert "Delete block_proboconnect.js"
dalgona-edu May 8, 2023
c357ee1
Revert "라이브러리 동작 확인"
dalgona-edu May 8, 2023
ea1ef9e
Revert "보드 명칭 변경"
dalgona-edu May 8, 2023
b9e7dbf
Revert "디지털, 아날로그 순서 및 ID값 적용"
dalgona-edu May 8, 2023
7e08d6f
Revert "환경 전체 업로드"
dalgona-edu May 8, 2023
d2b7a37
Revert "url 수정"
dalgona-edu May 8, 2023
eb90e35
달고나 제어보드 블럭 업데이트
dalgona-edu May 8, 2023
4867669
엔트리 등록 전 블럭 이상 테스트
dalgona-edu May 9, 2023
0ad30e3
블럭 테스트 진행블럭 구분, 보드 등록 전 테스트
dalgona-edu May 11, 2023
c445637
Merge pull request #2483 from dalgona-edu/develop-hw
Tnks2U May 11, 2023
1f6322a
230512_딜레이시간 변경
ATRobotLab May 12, 2023
2f05257
글자 및 선 구분 수정, 최종 PR
dalgona-edu May 15, 2023
e621bdc
모델학습에서 0을 문자로 인식하는 오류 수정
May 16, 2023
3f61d15
Merge pull request #2501 from entrylabs/issue/6258
leunge May 16, 2023
219400a
#5866 읽어주기 블럭 음성 추가
May 16, 2023
65725ec
버그 수정
SketchwareMoon May 18, 2023
699a43b
모터 L/R 바뀌는 버그 수정
SketchwareMoon May 18, 2023
70219e1
블럭 종류 구분을 위한 타이틀 추가
SketchwareMoon May 18, 2023
4ff1949
버그 수정
SketchwareMoon May 18, 2023
6ec72ef
Serial 데이터가 일부 잘려오는 경우를 수용하도록 변경
SketchwareMoon May 18, 2023
4b16ceb
Merge branch 'entrylabs:develop-hw' into develop-hw
pyocoding May 19, 2023
74796d9
Merge pull request #2498 from Neo3ds/develop-hw
Tnks2U May 22, 2023
a108324
Merge pull request #2496 from pyocoding/develop-hw
Tnks2U May 22, 2023
4cde915
Merge pull request #2503 from SketchwareMoon/develop-hw
Tnks2U May 22, 2023
e7f43bf
Merge pull request #2499 from ATRobotLab/develop-hw
Tnks2U May 22, 2023
4bc2c5b
Merge pull request #2500 from dalgona-edu/develop-hw
Tnks2U May 22, 2023
6c49429
Merge pull request #2502 from entrylabs/issue/5866
leunge May 23, 2023
7890002
feat: 마이크로비트 최대반복요청 상한성 수정
Tnks2U May 24, 2023
5e2bda3
Merge branch 'develop' into develop-hw
Tnks2U May 24, 2023
5f7de11
Merge pull request #2504 from entrylabs/develop-hw
Tnks2U May 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/hardware/neo_cannon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hw/neo_cannon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/class/learning/Cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { kmpp } from 'skmeans/kinit';
// import { kmpp } from 'skmeans/dist/node/kinit';
import floor from 'lodash/floor';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import LearningView from './LearningView';
import Chart from './Chart';
import DataTable from '../DataTable';
Expand Down Expand Up @@ -155,7 +156,7 @@ class Cluster {
this.#isTrained = false;
const { data, select } = this.#table;
const filtered = data.filter(
(row) => !select.flat().some((selected) => !_toNumber(row[selected]))
(row) => !select.flat().some((selected) => _isNaN(_toNumber(row[selected])))
);
const [attr] = select;

Expand Down
3 changes: 2 additions & 1 deletion src/class/learning/DecisionTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import _max from 'lodash/max';
import _sum from 'lodash/sum';
import _mean from 'lodash/mean';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import LearningBase from './LearningBase';
import { DecisionTreeClassifier as DTClassifier } from 'ml-cart';
import Utils from './Utils';
Expand Down Expand Up @@ -159,7 +160,7 @@ function getData(testRate = 0.2, data) {
const { select = [[0], [1]], data: table, fields } = data;
const [attr, predict] = select;
const filtered = table.filter(
(row) => !select[0].some((selected) => !_toNumber(row[selected]))
(row) => !select[0].some((selected) => _isNaN(_toNumber(row[selected])))
);
const dataArray = filtered
.map((row) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/class/learning/LearningView.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const STATUS = {

export default class LearningView {
constructor({ name = 'model name', status = STATUS.NO_MODEL, value = 0} = {}) {
this.id = Entry.generateHash();
this.id = Entry.generateHash();
this.visible = true;
this.value = value;
const fontFamily = EntryStatic.fontFamily || 'NanumGothic';
Expand Down
3 changes: 2 additions & 1 deletion src/class/learning/LogisticRegression.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import _max from 'lodash/max';
import _sum from 'lodash/sum';
import _mean from 'lodash/mean';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import LearningBase from './LearningBase';
import Utils from './Utils';

Expand Down Expand Up @@ -184,7 +185,7 @@ function getData(validationRate, testRate, data, trainParam) {
const { select = [[0], [1]], data: table, fields } = data;
const [attr, predict] = select;
const filtered = table.filter(
(row) => !select[0].some((selected) => !_toNumber(row[selected]))
(row) => !select[0].some((selected) => _isNaN(_toNumber(row[selected])))
);
const dataArray = filtered
.map((row) => ({
Expand Down
3 changes: 2 additions & 1 deletion src/class/learning/NumberClassification.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import _floor from 'lodash/floor';
import _sum from 'lodash/sum';
import _mean from 'lodash/mean';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import DataTable from '../DataTable';

export const classes = [
Expand Down Expand Up @@ -334,7 +335,7 @@ function convertTableToKnnData(tableData = {}) {
const { select = [[0], [1]], data: table = [] } = tableData;
const [attr, predict] = select;
const filtered = table.filter(
(row) => !select[0].some((selected) => !_toNumber(row[selected]))
(row) => !select[0].some((selected) => _isNaN(_toNumber(row[selected])))
);
return filtered.reduce(
(accumulator, row) => {
Expand Down
3 changes: 2 additions & 1 deletion src/class/learning/Regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Chart from './Chart';
import _sum from 'lodash/sum';
import _mean from 'lodash/mean';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import LearningBase from './LearningBase';
import Utils from './Utils';

Expand Down Expand Up @@ -224,7 +225,7 @@ function convertToTfData(data, trainParam) {
const [attr, predict] = select;
const { epochs = 1, batchSize = 1 } = trainParam;
const filtered = table.filter(
(row) => !select.flat().some((selected) => !_toNumber(row[selected]))
(row) => !select.flat().some((selected) => _isNaN(_toNumber(row[selected])))
);
const totalDataSize = Math.ceil(filtered.length / batchSize) * epochs;
return filtered.reduce(
Expand Down
3 changes: 2 additions & 1 deletion src/class/learning/Svm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import _max from 'lodash/max';
import _sum from 'lodash/sum';
import _mean from 'lodash/mean';
import _toNumber from 'lodash/toNumber';
import _isNaN from 'lodash/isNaN';
import Utils from './Utils';
const { callApi } = require('../../util/common');
const SVM = require('libsvm-js/asm');
Expand Down Expand Up @@ -168,7 +169,7 @@ class Svm extends LearningBase {
const { select = [[0], [1]], data: table, fields } = data;
const [attr, predict] = select;
const filtered = table.filter(
(row) => !select[0].some((selected) => !_toNumber(row[selected]))
(row) => !select[0].some((selected) => _isNaN(_toNumber(row[selected])))
);
const dataArray = filtered
.map((row) => ({
Expand Down
4 changes: 4 additions & 0 deletions src/playground/blocks/block_ai_utilize_tts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Entry.AI_UTILIZE_BLOCK.tts.getBlocks = function() {
[Lang.Blocks.tts_echo, 'brown'],
[Lang.Blocks.tts_mischievous, 'minions'],
[Lang.Blocks.tts_dainty, 'sally'],
[Lang.Blocks.tts_sabina, 'nsabina'],
[Lang.Blocks.tts_mammon, 'nmammon'],
[Lang.Blocks.tts_kitty, 'nmeow'],
[Lang.Blocks.tts_doggy, 'nwoof'],
],
value: 'kyuri',
fontSize: 11,
Expand Down
37 changes: 0 additions & 37 deletions src/playground/blocks/hardware/block_0uboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,43 +313,6 @@ Entry.pyocoding.getBlocks = function() {
return ANALOG ? ANALOG[port] || 0 : 0;
},
},
pyocoding_get_touch_value: {
color: EntryStatic.colorSet.block.default.HARDWARE,
outerLine: EntryStatic.colorSet.block.darken.HARDWARE,
skeleton: 'basic_string_field',
statements: [],
events: {},
params: [
{
"type": "Dropdown",
"options": [
[ "A3", "3" ],
//[ "A5", "5" ],
],
"value": "3",
"fontSize": 11,
bgColor: EntryStatic.colorSet.block.darken.HARDWARE,
arrowColor: EntryStatic.colorSet.arrow.default.HARDWARE,
},
],
def: {
params: [ null ],
"type": "pyocoding_get_touch_value"
},
isNotFor: [ '0uboard' ],
class: "SENSOR",
paramsKeyMap: {
"PORT": 0,
},
func: function (sprite, script) {
var port = script.getValue("PORT", script);
var ANALOG = Entry.hw.portData.ANALOG;
console.log(port,ANALOG)
if (port[0] === "A")
port = port.substring(1)
return ANALOG ? ANALOG[5] || 0 : 0;
},
},
pyocoding_change_4095to255_value: {
color: EntryStatic.colorSet.block.default.HARDWARE,
outerLine: EntryStatic.colorSet.block.darken.HARDWARE,
Expand Down
2 changes: 1 addition & 1 deletion src/playground/blocks/hardware/block_KKMOO.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Entry.kkmoo.getBlocks = function() {
isNotFor: ['kkmoo'],
func: async function(sprite,script){
const wait = (timeToDelay) => new Promise((resolve) => setTimeout(resolve, timeToDelay))
await wait(100);
await wait(300);
await Entry.hw.update();
if(Entry.hw.portData.data == 'true'){
Entry.kkmoo.isMotionRunning = true;
Expand Down
Loading