100步300次

This commit is contained in:
wantong
2024-03-07 10:14:40 +08:00
parent f68fb2c393
commit e7c94808b5
6 changed files with 6526 additions and 110 deletions

View File

@ -94,15 +94,15 @@ extern ADC_HandleTypeDef g_adc_handle; /* ADC
uint16_t adc_value; uint16_t adc_value;
int enc1,enc0=6000; int enc1,enc0=6000;
int enc2; int enc2;
uint8_t buf[2900]; uint8_t buf[2500];
uint8_t buf1[29]={0X0A,0X0A,0X0A,0X0A,0X0A,0X0A,0X0A,0X0A};
int adc_array_size= 1520; int adc_array_size= 1520;
int average_value[100][400]; int average_value[100][300];
int enc3[100][400]; int enc3[100][300];
uint16_t adc_array[1520]; //uint16_t adc_array[1520];
uint16_t ev_co[1520]; //uint16_t ev_co[1520];
int measure_f=0; int measure_f=0;
int track_array[400]; int track_array[300];
/* USER CODE END 0 */ /* USER CODE END 0 */
/** /**
@ -204,8 +204,10 @@ int main(void)
} }
CDC_Transmit_HS(buf, 8*track_array[k]); CDC_Transmit_HS(buf, 8*track_array[k]);
// memset(buf,0,8*track_array[k]);
HAL_Delay(2);
} }
HAL_Delay(2);
// if(enc2-enc0>1000) // if(enc2-enc0>1000)
// { // {

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@
<PageWidth>79</PageWidth> <PageWidth>79</PageWidth>
<PageLength>66</PageLength> <PageLength>66</PageLength>
<TabStop>8</TabStop> <TabStop>8</TabStop>
<ListingPath></ListingPath> <ListingPath>..\obj\</ListingPath>
</OPTLEX> </OPTLEX>
<ListingPage> <ListingPage>
<CreateCListing>1</CreateCListing> <CreateCListing>1</CreateCListing>

View File

@ -55,7 +55,7 @@
<CreateHexFile>1</CreateHexFile> <CreateHexFile>1</CreateHexFile>
<DebugInformation>1</DebugInformation> <DebugInformation>1</DebugInformation>
<BrowseInformation>0</BrowseInformation> <BrowseInformation>0</BrowseInformation>
<ListingPath></ListingPath> <ListingPath>..\obj\</ListingPath>
<HexFormatSelection>1</HexFormatSelection> <HexFormatSelection>1</HexFormatSelection>
<Merge32K>0</Merge32K> <Merge32K>0</Merge32K>
<CreateBatchFile>0</CreateBatchFile> <CreateBatchFile>0</CreateBatchFile>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff