Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
668d814559 | ||
|
953bf27bc5 | ||
|
d4ee9d2d62 |
@ -121,10 +121,9 @@ namespace sensors.internal {
|
||||
|
||||
powerMM = control.mmap("/dev/lms_power", 2, 0)
|
||||
|
||||
devPoller = new Poller(250, () => { return hashDevices(); },
|
||||
(prev, curr) => {
|
||||
detectDevices();
|
||||
});
|
||||
devPoller = new Poller(500,
|
||||
() => { return hashDevices(); },
|
||||
(prev, curr) => { detectDevices(); });
|
||||
}
|
||||
|
||||
export function getActiveSensors(): Sensor[] {
|
||||
@ -431,11 +430,11 @@ void cUiUpdatePower(void)
|
||||
constructor(port: number) {
|
||||
super(port)
|
||||
this.mode = 0
|
||||
this.realmode = 0
|
||||
this.realmode = -1
|
||||
}
|
||||
|
||||
_activated() {
|
||||
this.realmode = 0
|
||||
this.realmode = -1
|
||||
this._setMode(this.mode)
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace pxsim {
|
||||
|
||||
export enum ColorSensorMode {
|
||||
None = -1,
|
||||
Reflected = 0,
|
||||
Ambient = 1,
|
||||
Colors = 2,
|
||||
|
@ -1,6 +1,5 @@
|
||||
namespace pxsim {
|
||||
export const enum GyroSensorMode {
|
||||
None = -1,
|
||||
Angle = 0,
|
||||
Rate = 1,
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ namespace pxsim {
|
||||
}
|
||||
|
||||
export enum InfraredSensorMode {
|
||||
None = -1,
|
||||
Proximity = 0,
|
||||
Seek = 1,
|
||||
RemoteControl = 2
|
||||
|
Loading…
Reference in New Issue
Block a user