This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useRef, useState } from 'react'; | |
import * as THREE from 'three'; | |
const ThreeDCoordinateSystem = () => { | |
const mountRef = useRef(null); | |
const [rotationMatrix, setRotationMatrix] = useState([ | |
[1, 0, 0], | |
[0, 1, 0], | |
[0, 0, 1] | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useRef, useState, useEffect } from 'react'; | |
const Raytracer = () => { | |
const canvasRef = useRef(null); | |
const [isRendering, setIsRendering] = useState(false); | |
const [progress, setProgress] = useState(0); | |
const renderingRef = useRef(false); | |
const requestRef = useRef(null); | |
useEffect(() => { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <sys/socket.h> | |
#define PORT 8080 | |
#define BUFFER_SIZE 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello, World!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
printf("Hello, World!\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Spresense Multi-IMU[CXD5602PWBIMU1J] Sample for Arduino IDE | |
// | |
// #がいためIMU | |
// by @GOROman | |
#include <stdio.h> | |
#include <sys/ioctl.h> | |
#include <time.h> | |
#include <inttypes.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* Included Files | |
****************************************************************************/ | |
#include <nuttx/config.h> | |
#include <sys/ioctl.h> | |
#include <time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 0 // Cline Prompt | |
@cxd5602pwbimu_main.c を変更し、6軸IMUから加速度バイアス、角速度バイアス、クォータ二オンによる姿勢と速度と慣性空間における位置を算出する拡張カルマンフィルタのCのコードを生成してください。予測更新、観測更新、カルマンゲインの更新、誤差共分散の推定と省略せず完全なコードをお願いします。姿勢に関してはクォータニオンをオイラー角に変換して出力するのも含めてください。 | |
#endif | |
/**************************************************************************** | |
* examples/cxd5602pwbimu/cxd5602pwbimu_main.c | |
* | |
* Copyright 2025 Sony Semiconductor Solutions Corporation |
NewerOlder