回転しながら加速度・ジャイロセンサのキャリブレーションをしているため,手直し必要
#include "MPU9250.h"
const int motorA[3] = {13, 4, 25}; // AIN1, AIN2, PWMA
const int motorB[3] = {14, 27, 26}; // BIN1, BIN2, PWMB
const int CHANNEL_A = 0;
const int CHANNEL_B = 1;
回転しながら加速度・ジャイロセンサのキャリブレーションをしているため,手直し必要
#include "MPU9250.h"
const int motorA[3] = {13, 4, 25}; // AIN1, AIN2, PWMA
const int motorB[3] = {14, 27, 26}; // BIN1, BIN2, PWMB
const int CHANNEL_A = 0;
const int CHANNEL_B = 1;
ジャイロ:静止状態 地磁気:8の字に回転
Accel Gyro calibration will start in 5sec.
Please leave the device still on the flat plane.
Mag calibration will start in 5sec.
Please Wave device in a figure eight until done.
#include<stdio.h>
#include<string.h>
struct schedule {
int year;
int month;
int day;
int hour;
char title[100];
大規模コードをグラフィカルに見たい場合,描画ツールを使って流れを見たくなったことありませんでしょうか.
その時に,doxygen+graphvizを使えばいい感じになるかもしれません.
doxygenの使い方は,数多くのブログで語られているので詳しくは言いません.
参考に記載されているURLにアクセスしてみてください.
ここでは,設定ファイル(Doxyfile)に手を加えた部分を紹介しておきます.
環境
OS: macOS Catalina v10.15.5
Android Studio 4.1
sdkのインストール
以下のサイトを参考にし、自分用にメモと実装例を残しました。詳しくは以下のサイトをご覧ください。
以下転載: