Skip to content

Commit

Permalink
fixed version number deactivated selftest every 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
BeSeeTek committed Sep 7, 2021
1 parent 205d27c commit dc3f81c
Show file tree
Hide file tree
Showing 7 changed files with 930 additions and 533 deletions.
1,057 changes: 705 additions & 352 deletions .cproject

Large diffs are not rendered by default.

73 changes: 49 additions & 24 deletions .settings/language.settings.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1342314402" name="Debug">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1303404622861947263" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>
<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.282482758" name="Release">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1238329412074114012" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>

<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1342314402" name="Debug">

<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">

<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>

<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>

<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>

<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>

<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="161548776490051292" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">

<language-scope id="org.eclipse.cdt.core.gcc"/>

<language-scope id="org.eclipse.cdt.core.g++"/>

</provider>

</extension>

</configuration>

<configuration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.282482758" name="Release">

<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">

<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>

<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>

<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>

<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>

<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="103658592557067391" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">

<language-scope id="org.eclipse.cdt.core.gcc"/>

<language-scope id="org.eclipse.cdt.core.g++"/>

</provider>

</extension>

</configuration>

</project>
4 changes: 2 additions & 2 deletions Inc/MPU9250.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ class MPU9250: public Met4FoFSensor {
void setGyroSelfTest(uint8_t SelftestStatus);//bytemask 0x00000xyz 1=selftest active 0=normal mesurment
int getData(DataMessage * Message,uint64_t RawTimeStamp);
int getDescription(DescriptionMessage * Message,DescriptionMessage_DESCRIPTION_TYPE DESCRIPTION_TYPE);
uint32_t _SPIHSBOUDRATEPRESCALERFAST=SPI_BAUDRATEPRESCALER_4;
uint32_t _SPIHSBOUDRATEPRESCALERSLOW=SPI_BAUDRATEPRESCALER_64;
uint32_t _SPIHSBOUDRATEPRESCALERFAST=SPI_BAUDRATEPRESCALER_8;
uint32_t _SPIHSBOUDRATEPRESCALERSLOW=SPI_BAUDRATEPRESCALER_128;
uint32_t getSampleCount();
void increaseCaptureCountWORead(){_SampleCount++;return ;};
float getNominalSamplingFreq();
Expand Down
4 changes: 2 additions & 2 deletions Inc/freertos_cubemx.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ extern "C" {
#include "SEGGER_RTT.h"
#include "tim64extender.h"
#define VERSION_MAJOR 0
#define VERSION_MINOR 6
#define VERSION_PATCH 1
#define VERSION_MINOR 7
#define VERSION_PATCH 0
const uint8_t UDP_TARGET_DEFAULT_IP_ADDRESS[4] = { 192, 168, 0, 200 };


Expand Down
23 changes: 21 additions & 2 deletions Src/freertos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ void StartWebserverThread(void const * argument) {
}

void StartBlinkThread(void const * argument) {
uint32_t loops=0;
ConfigManager& configMan = ConfigManager::instance();
uint32_t lastSampleCount[4]={0};
while(not Sensors_init_finished){
Expand All @@ -472,10 +473,9 @@ void StartBlinkThread(void const * argument) {

bool justRestarted=true;
bool justRestartedDelay[4]={false};
MPU9250* MPUSSenors[4]={&Sensor0,&Sensor1,&Sensor2,&Sensor3};
while (1) {
HAL_GPIO_TogglePin(LD1_GPIO_Port, LD1_Pin);

MPU9250* MPUSSenors[4]={&Sensor0,&Sensor1,&Sensor2,&Sensor3};
for(int i=0;i<4;i++){
MPU9250* MPUSensor=MPUSSenors[i];
float nominalFreq=MPUSensor->getNominalSamplingFreq();
Expand Down Expand Up @@ -520,6 +520,25 @@ void StartBlinkThread(void const * argument) {
}

}
/*
loops++;
if(loops%10==0){
for(int i=0;i<4;i++){
MPU9250* MPUSensor=MPUSSenors[i];
MPUSensor->setAccSelfTest(0b00000111);//bytemask 0x00000xyz 1=selftest active 0=normal mesurment
MPUSensor->setGyroSelfTest(0b00000111);//bytemask 0x00000xyz 1=selftest active 0=normal mesurment
}
}
if(loops%10==1){
for(int i=0;i<4;i++){
MPU9250* MPUSensor=MPUSSenors[i];
MPUSensor->setAccSelfTest(0x00);//bytemask 0x00000xyz 1=selftest active 0=normal mesurment
MPUSensor->setGyroSelfTest(0x00);//bytemask 0x00000xyz 1=selftest active 0=normal mesurment
}
}
*/
osDelay(1000);
}
osThreadTerminate(NULL);
Expand Down
Loading

0 comments on commit dc3f81c

Please sign in to comment.