mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #9449 from etracer65/blackbox_32k_cleanup
Blackbox 32K code cleanup
This commit is contained in:
commit
19fa0f7c23
2 changed files with 2 additions and 21 deletions
|
@ -95,20 +95,6 @@ TEST(BlackboxTest, TestInitIntervals)
|
|||
EXPECT_EQ(256, blackboxIInterval);
|
||||
EXPECT_EQ(8, blackboxPInterval);
|
||||
EXPECT_EQ(65536, blackboxSInterval);
|
||||
|
||||
// 16kHz PIDloop
|
||||
targetPidLooptime = 63; // rounded from 62.5
|
||||
blackboxInit();
|
||||
EXPECT_EQ(512, blackboxIInterval); // note rounding
|
||||
EXPECT_EQ(16, blackboxPInterval);
|
||||
EXPECT_EQ(131072, blackboxSInterval);
|
||||
|
||||
// 32kHz PIDloop
|
||||
targetPidLooptime = 31; // rounded from 31.25
|
||||
blackboxInit();
|
||||
EXPECT_EQ(1024, blackboxIInterval); // note rounding
|
||||
EXPECT_EQ(32, blackboxPInterval);
|
||||
EXPECT_EQ(262144, blackboxSInterval);
|
||||
}
|
||||
|
||||
TEST(BlackboxTest, Test_500Hz)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue