HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
basic_polling_example.cpp File Reference

Basic polling mode example with orientation and linear acceleration. More...

#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <cmath>
#include <memory>
#include <stdio.h>
#include "../../../inc/bno08x.hpp"
#include "esp32_bno08x_bus.hpp"
Include dependency graph for basic_polling_example.cpp:

Functions

void app_main (void)
 

Detailed Description

Basic polling mode example with orientation and linear acceleration.

This example demonstrates:

  • Basic initialization using the factory function
  • Enabling sensors (Rotation Vector and Linear Acceleration)
  • Polling for sensor data
  • Calculating Euler angles from quaternion
Note
This example runs independently on an I2C bus that only communicates with the BNO08x device. The I2C bus setup (GPIO4 SDA, GPIO5 SCL) mirrors the pcal95555/pca9685 examples for pin consistency.
Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ app_main()

void app_main ( void )