This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tinypilote hat
#21
Thanks Sean for your feedback!
When I run scriptarduino.py, I do get a response when I press the buttons on the remote control!

Code:
tc@pypilot:/mnt/mmcblk0p2/tinypilot/pypilot/hat$ sudo python3 arduino.py
initializing arduino
arduino on spidev0.1
nmea set baud [5]
[['voltage', {'vcc': 1.147, 'vin': 3.273}]] 192.696803 192.696803
[['voltage', {'vcc': 1.155, 'vin': 3.273}]] 197.818791 5.121988000000016
hat firmware version 1.2
[['version', '1.2']] 202.636867 4.818075999999991
[['voltage', {'vcc': 1.167, 'vin': 3.273}]] 202.90993 0.2730630000000076
baud rate TX: 0.0  RX 0.0
[['voltage', {'vcc': 1.145, 'vin': 3.273}]] 207.943154 5.03322399999999
[['voltage', {'vcc': 1.133, 'vin': 3.273}]] 213.077411 5.134257000000019
baud rate TX: 0.0  RX 0.0
[['rf18750340', 1]] 215.64784 2.57042899999999
[['rf18750340', 2]] 215.75385 0.10600999999999772
[['rf18750340', 3]] 215.993244 0.23939400000000433
[['rf18750340', 4]] 216.288505 0.29526099999998223
[['rf18750340', 5]] 216.517617 0.22911200000001486
[['rf18750340', 0]] 216.82859 0.31097299999998995
[['rf14750340', 1]] 216.924455 0.09586500000000342
[['rf14750340', 2]] 217.133263 0.20880800000000477
[['rf14750340', 3]] 217.38271 0.24944700000000353
[['rf14750340', 0]] 217.673291 0.2905810000000031
[['rf12750340', 1]] 217.717742 0.04445099999998092
[['rf12750340', 2]] 217.927131 0.2093890000000158
[['rf12750340', 0]] 218.238489 0.31135799999998426
[['rf1C750340', 1]] 218.334276 0.0957870000000014
[['rf1C750340', 2]] 218.49188 0.1576040000000205
[['rf1C750340', 0]] 218.802646 0.310766000000001
[['rf1C750340', 1]] 219.103274 0.300627999999989
[['rf1C750340', 2]] 219.337265 0.23399100000000317
[['rf1C750340', 3]] 219.535599 0.19833399999998846
[['rf1C750340', 0]] 219.8262 0.29060100000000944



Why, then, does it not work in normal use? For my tests at home the MPU inertial sensor is not connected because it is installed on my boat. Could the absence of the sensor explain my problems?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)