Initial sim implementation

This commit is contained in:
Sam El-Husseini
2017-12-18 13:04:17 -08:00
parent 6836852122
commit 6320379d02
88 changed files with 3949 additions and 3552 deletions

View File

@ -236,6 +236,11 @@ namespace motors {
constructor(port: Output, large: boolean) {
super(port);
this._large = large;
this.markUsed();
}
markUsed() {
motors.__motorUsed(this._port, this._large);
}
protected __init() {
@ -347,6 +352,11 @@ namespace motors {
constructor(ports: Output) {
super(ports);
this.markUsed();
}
markUsed() {
motors.__motorUsed(this._port, true);
}
protected __init() {