Here's my problem:
I have a program on a raspberry pi to read values from a gamepad/joystick and send them to an Arduino over an nrf24l01+ connection.
Most of it is working. The problem is, when i recieve the data on the Arduino, it is printed out as a unicode character, and i can't figure out how to convert it back into an int.
On the pi3 side, i have a python3 program that returns float values from a flight sim joystick, between -1 and 1. I scaled this value up to 0-180(for servo inputs), and converted it into an int type.
(important parts of the python script)
output = list(")
for i in range (axes):
axis = joystick.get_axis(I)
axis = (axis+1)/2 #scale to between 0-1
axis = int(axis * 180)
output.append(chr(axis))
My arduino code is simple: it just prints out what it receives for debugging. Since i'm sending 5 axis values, i get 5 characters in on the Serial console(all capital Y). When i move the joystick, these characters change. I need to know how to change this input into usable numbers.