Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

ipwmの設定可能な範囲を定める #19

Open
takasehideki opened this issue Jun 6, 2020 · 1 comment
Open

ipwmの設定可能な範囲を定める #19

takasehideki opened this issue Jun 6, 2020 · 1 comment

Comments

@takasehideki
Copy link
Contributor

int RC_drive(int direc, int ipwm); について,ipwm の設定可能値は 0-255 と規定されている.
この範囲以外の値が入力されたら,エラーを返すか,丸めるようにしたい.
(いろいろ試そうとする受講者の対策ですw

@z10000
Copy link
Collaborator

z10000 commented Jun 21, 2020

良いと思います。なお255は8ビット解像度のArduinoベースなのですがESP32だと10ビットの1023なのですが、どちらのCPUなのかCPU形式指定を見て内部で比率で補正してます

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants