Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BMX055サンプルコードの更新によるコンパイルエラー #10

Open
Kuwamai opened this issue Apr 4, 2024 · 0 comments
Open
Assignees
Labels
Type: Bug Bug or Bug fixes

Comments

@Kuwamai
Copy link

Kuwamai commented Apr 4, 2024

Describe the bug

Arduino_Sample/STEP9_2/STEP9_2.inoのコードで使用しているBMX055のサンプルコードが更新され、コンパイルエラーが発生しています。

Environments

  • OS: Ubuntu 22.04
  • Software Version: 3da3146

To Reproduce

Arduino_Sample/STEP9_2/STEP9_2.inoコンパイル時にエラーが生じます。

error: 'get_zGyro' was not declared in this scope

Expected behavior

エラーなくコンパイルできること。

Full log or Screenshots

/home/kuwagata/Downloads/TrainingTracer_Samples-0.2.1/Arduino_Sample/STEP9_2/STEP9_2.ino: In function 'void setup()':
/home/kuwagata/Downloads/TrainingTracer_Samples-0.2.1/Arduino_Sample/STEP9_2/STEP9_2.ino:195:25: error: 'get_zGyro' was not declared in this scope
  195 |         theta = theta + get_zGyro() * (sub_time+1000)/10000;
      |                         ^~~~~~~~~

Additional context

BMX055_20231201.inoに下記のような関数を追加することで動作するようになります。

float get_zGyro()
{
  return zGyro;
}
@Kuwamai Kuwamai added the Type: Bug Bug or Bug fixes label Apr 4, 2024
@Kuwamai Kuwamai self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant