Initial sim implementation
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user