Skip to content

Commit f1f901c

Browse files
committed
量産スタックチャン試作基板の動作テスト
[補足]moddableはv4.1
1 parent 6596987 commit f1f901c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

firmware/stackchan/drivers/dynamixel-driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PControl {
4646
}
4747
const position = (this.presentPosition = result.value)
4848
const current = Math.min(Math.abs(this.goalPosition - position) * this.gain, this.saturation)
49-
// trace(`servo ${this.name} ... (${position}, ${this.goalPosition}, ${this.gain}, ${this.saturation}, ${current})\n`)
49+
trace(`servo ${this.name} ... (${position}, ${this.goalPosition}, ${this.gain}, ${this.saturation}, ${current})\n`)
5050
await this.servo.setGoalCurrent(current)
5151
}
5252
}

firmware/stackchan/main.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ async function main() {
104104
trace(`WiFi connection failed: ${msg}`)
105105
})
106106
let { onRobotCreated, onLaunch } = defaultMod
107-
if (Modules.has('mod')) {
108-
const mod = Modules.importNow('mod') as StackchanMod
109-
onRobotCreated = mod.onRobotCreated ?? onRobotCreated
110-
onLaunch = mod.onLaunch ?? onLaunch
111-
}
107+
// if (Modules.has('mod')) {
108+
// const mod = Modules.importNow('mod') as StackchanMod
109+
// onRobotCreated = mod.onRobotCreated ?? onRobotCreated
110+
// onLaunch = mod.onLaunch ?? onLaunch
111+
// }
112+
trace('Kurasawa changed TX7 RX6')
112113
const shouldRobotCreate = await onLaunch?.()
113114
if (shouldRobotCreate !== false) {
114115
const robot = createRobot()

firmware/stackchan/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
"sampleRate": 24000
105105
},
106106
"serial": {
107-
"transmit": 17,
108-
"receive": 18
107+
"transmit": 7,
108+
"receive": 6
109109
},
110110
"rotation": 0,
111111
"virtualButton": true

firmware/stackchan/manifest_local.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"port": 50021
1010
},
1111
"driver": {
12-
"type": "scservo"
12+
"type": "dynamixel"
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)