Skip to content

Commit 5edf123

Browse files
authored
fix rotation example (#32)
1 parent 8aa0606 commit 5edf123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/KerbalSimpitAllCommandDemo/KerbalSimpitAllCommandDemo.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void setup() {
298298
// Convert them in KerbalSimpit range
299299
int16_t pitch = map(reading_pitch, 0, 1023, INT16_MIN, INT16_MAX);
300300
int16_t roll = map(reading_roll, 0, 1023, INT16_MIN, INT16_MAX);
301-
int16_t yaw = map(reading_roll, 0, 1023, INT16_MIN, INT16_MAX);
301+
int16_t yaw = map(reading_yaw, 0, 1023, INT16_MIN, INT16_MAX);
302302
// Put those values in the message one at a time, e.g. if you only want to set one or two axis
303303
rot_msg.setPitch(pitch);
304304
rot_msg.setRoll(roll);

0 commit comments

Comments
 (0)