1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 11:26:25 +02:00

[ES] Blatt 3 fertiggestellt

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2015-06-09 17:10:11 +02:00
parent 04805ce189
commit 8999977fc5
4 changed files with 177 additions and 186 deletions

View File

@ -4,8 +4,8 @@
int az = 50;
int xout = A1;
int zout = A3;
int vref = A0;
int zout = A2;
int vref = A3;
// used to achieve a 10 Hz frequency
// don't touch them
@ -55,8 +55,8 @@ void loop() {
double differenceXRef = xAxis - ref;
double differenceZRef = zAxis - ref;
double drehrateX = differenceXRef / 9.1;
double drehrateZ = differenceZRef / 9.1;
double drehrateX = ((differenceXRef * 5000) / 1024) / 9.1;
double drehrateZ = ((differenceZRef * 5000) / 1024) / 9.1;
Serial.print("x:");
Serial.println(xAxis);