output -> motors

This commit is contained in:
Peli de Halleux
2017-10-27 11:01:11 -07:00
parent bcb68d937d
commit 18fefa2a44
7 changed files with 45 additions and 42 deletions

View File

@ -17,7 +17,7 @@ enum OutputType {
MiniTacho = 8,
}
namespace output {
namespace motors {
let pwmMM: MMap
let motorMM: MMap
@ -53,7 +53,7 @@ namespace output {
}
function mkCmd(out: Output, cmd: number, addSize: number) {
const b = createBuffer(2 + addSize)
const b = output.createBuffer(2 + addSize)
b.setNumber(NumberFormat.UInt8LE, 0, cmd)
b.setNumber(NumberFormat.UInt8LE, 1, out)
return b