forked from Archive/PX4-Autopilot
Fix SITL CPU (#4657)
* accelsim: add debug output like in gyrosim * DriverFramework: update submodule This brings lower CPU usage because of scheduling in us instead of ms.
This commit is contained in:
parent
224fbbc26b
commit
45bb1786b6
|
@ -1 +1 @@
|
||||||
Subproject commit 46e6573cd7eb455881e06a4bf38752156c247475
|
Subproject commit 5e055c7d11ec828f59716478c3c5d32c8c1809f0
|
|
@ -802,9 +802,21 @@ ACCELSIM::stop()
|
||||||
void
|
void
|
||||||
ACCELSIM::_measure()
|
ACCELSIM::_measure()
|
||||||
{
|
{
|
||||||
//PX4_INFO("ACCELSIM::_measure");
|
#if 0
|
||||||
/* status register and data as read back from the device */
|
static int x = 0;
|
||||||
|
|
||||||
|
// Verify the samples are being taken at the expected rate
|
||||||
|
if (x == 99) {
|
||||||
|
x = 0;
|
||||||
|
PX4_INFO("ACCELSIM::measure %" PRIu64, hrt_absolute_time());
|
||||||
|
|
||||||
|
} else {
|
||||||
|
x++;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* status register and data as read back from the device */
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
struct {
|
struct {
|
||||||
uint8_t cmd;
|
uint8_t cmd;
|
||||||
|
|
Loading…
Reference in New Issue