- Joined
- Nov 24, 2014
- Messages
- 3,162
- Trophies
- 2
- Age
- 29
- Location
- Bologna
- Website
- rinnegatamante.it
- XP
- 4,857
- Country
Code:// Check if user is in GW mode if (CSND_initialize(NULL)==0){ CSND_shutdown(); GW_MODE = false; }else{ GW_MODE = true; }
This is how i check a GW/N3DS on lpp-3ds.
You should try it withSomeone knows how to use gyroscope?
I tried to use this:
Code:hidScanInput(); irrstScanInput(); HIDUSER_EnableGyroscope(); float value; HIDUSER_GetGyroscopeRawToDpsCoefficient(&value);
But ninjhax crashes when i try it.
hidScanInput();
irrstScanInput();
EnableGyroscope();
float value;
GetGyroscopeRawToDpsCoefficient(&value);
CSND cannot be initialized with GW so you can check if your homebrew is started from ninjhax or from a GW/other flashcard by seeing what's the result of the CSND initialization (Note that also N3DS cannot initialize CSND).
You should try it with
Code:hidScanInput(); irrstScanInput(); EnableGyroscope(); float value; GetGyroscopeRawToDpsCoefficient(&value);
I think that you should use "hidGyroRead(angularRate* rate)".Solved the problem few minutes ago but i still don't know how to properly get gyroscope status. It seems values are random like it's not calibrated.
When i try do do something like (z * value) where z is the Z result of hidGyroRead, i get variable values even if 3DS is not moving :/
I think that you should use "hidGyroRead(angularRate* rate)".
Solved the problem few minutes ago but i still don't know how to properly get gyroscope status. It seems values are random like it's not calibrated.
When i try do do something like (z * value) where z is the Z result of hidGyroRead, i get variable values even if 3DS is not moving :/
Bitpersample and samplerate can be selected by your own, you have to take them with your WAV decoder by the header.
I shut CSND because lpp-3ds provides itself a function to initialize CSND (Sound.init).
Did you calibrate the gyrosensor? How much do the values change?Ehm... i said "where z is the Z result of hidGyroRead".
Did you calibrate the gyrosensor? How much do the values change?
I'm trying to convert it using audacity, but all i'm getting is a strange sound... Could someone convert this .wav file? https://www.dropbox.com/s/4oxxt9v7yko2cjr/POP.wav?dl=0
I also tried to cut the header using an hex editor, but it worked partially. The sound is similar to the one i'm trying to convert, but it has a loud and strange sound at the end..
32bit float + 44100hz= fail
8bit unsigned + 44100hz= fail
What do i have to choose?