Compare commits
No commits in common. "6ec73550456953a18a8cd576e11226f52b86100f" and "bdb8400d10094130e58248df839509a5fdfc6223" have entirely different histories.
6ec7355045
...
bdb8400d10
@ -819,12 +819,7 @@ export const useTrestle = () => {
|
||||
|
||||
// 발전 시뮬레이션 용 각도 재계산
|
||||
const getAzimuth = (parent) => {
|
||||
if (typeof parent === 'string') {
|
||||
console.warn('getAzimuth: parent is string, expected object', parent);
|
||||
return 0; // 또는 적절한 기본값
|
||||
}
|
||||
|
||||
const { moduleCompass, surfaceCompass, direction } = parent || {};
|
||||
const { moduleCompass, surfaceCompass, direction } = parent
|
||||
|
||||
if (surfaceCompass) {
|
||||
return -surfaceCompass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user