15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
namespace pxsim.input {
|
|
export function compassHeading(): number {
|
|
let b = board().compassState;
|
|
if (!b.usesHeading) {
|
|
b.usesHeading = true;
|
|
runtime.queueDisplayUpdate();
|
|
}
|
|
return b.heading;
|
|
}
|
|
|
|
export function magneticForce(): number {
|
|
// TODO
|
|
return 0;
|
|
}
|
|
} |