Klejs
(Jacob Juul Klejs Kolding)
February 16, 2017, 4:57pm
1
I have a Navio2 on a Pi2 with the power module from the store.
I followed the docs on how to set it up in APM Planner 2.0 but still I get zero measured voltage.
Could it be broken or is there some way I can test it?
It powers the Navio and Pi just fine.
Thanks
/Jacob
Hello there!
It is necessary to provide following information to get help:
Image and ArduPilot version.
Detailed problem description. How does expected behavior differ from the observed one?
Your step by step actions.
Picture of the setup and connection scheme.
If using any additional hardware please provide exact make and model.
Klejs
(Jacob Juul Klejs Kolding)
February 16, 2017, 10:15pm
3
I’m using a Navio2 with a Pi2 with image: emlid-raspbian-20160718.img and ArduPlane V3.7.1
I have connected a 4S lipo to the power module sold on the emlid store and according to the docs
selected the Pixhawk power module 90A in APM Planner 2.0 while connected to ArduPlane over UDP port 14550.
The problem is that I still get measured battery voltage as 0.
So far I have no servos or RC/radio gear connected.
Just a Wifi adapter.
I tried the ADC example and got:
pi@navio:~/Navio2/C++/Examples/ADC $ ./ADC
A0: 5.1480V A1: 0.0200V A2: 1.4820V A3: 0.0000V A4: 0.0080V A5: 0.0320V
A0: 5.1700V A1: 0.0160V A2: 1.4880V A3: 0.0000V A4: 0.0080V A5: 0.0320V
A0: 5.1700V A1: 0.0240V A2: 1.4760V A3: 0.0000V A4: 0.0320V A5: 0.0120V
A0: 5.1680V A1: 0.0240V A2: 1.4740V A3: 0.0000V A4: 0.0320V A5: 0.0140V
A0: 5.1680V A1: 0.0240V A2: 1.4740V A3: 0.0000V A4: 0.0080V A5: 0.0140V
A0: 5.1680V A1: 0.0200V A2: 1.4840V A3: 0.0000V A4: 0.0320V A5: 0.0120V
A0: 5.1700V A1: 0.0240V A2: 1.4840V A3: 0.0000V A4: 0.0300V A5: 0.0140V
A0: 5.1700V A1: 0.0200V A2: 1.4920V A3: 0.0000V A4: 0.0300V A5: 0.0120V
A0: 5.1600V A1: 0.0240V A2: 1.4760V A3: 0.0000V A4: 0.0060V A5: 0.0320V
A0: 5.1580V A1: 0.0160V A2: 1.4840V A3: 0.0000V A4: 0.0080V A5: 0.0320V
A0: 5.1600V A1: 0.0160V A2: 1.4880V A3: 0.0000V A4: 0.0060V A5: 0.0320V
A0: 5.1580V A1: 0.0240V A2: 1.4800V A3: 0.0000V A4: 0.0320V A5: 0.0140V
A0: 5.1600V A1: 0.0200V A2: 1.4820V A3: 0.0000V A4: 0.0080V A5: 0.0320V
A0: 5.1680V A1: 0.0240V A2: 1.4780V A3: 0.0000V A4: 0.0300V A5: 0.0100V
panky
(Benedikt)
February 16, 2017, 10:41pm
4
could you check that in full parameters list battery voltage and current pin are 2 and 3?
1 Like
Klejs
(Jacob Juul Klejs Kolding)
February 17, 2017, 10:36am
5
Not sure if I’m doing something wrong, but APM Planner doesn’t show Full Parameter List, only
Standart Parameters, and here
BATT_MONITOR, BATT_VOLT_PIN and BATT_CURR_PIN
are always set to Disabled even if I change them manually and restart ArduPlane and APM Planner.
Where does ArduPilot store settings and parameters on the Pi?
How do I ensure that parameters changed in APM Planner are stored on the Pi?
/Jacob
panky
(Benedikt)
February 17, 2017, 10:53am
6
click on file (upper left) and click advanced mode;
now full parameter list appears and you can check the pin numbers;
settings are in /var/APM/ArduCopter.stg
in full parameters list there is a button “write to”
Klejs
(Jacob Juul Klejs Kolding)
February 17, 2017, 11:18am
7
Not sure what I’m doing wrong, but Full Parameter List is empty.
Tried refresh, reset to default and reboot and download.
Also checked: /var/APM/ArduPlane.stg
It’s 16kb but almost all zeros?
/Jacob
panky
(Benedikt)
February 17, 2017, 11:34am
8
are you connected to your Navio?
u usually only need /var/APM/ArduPlane.stg after major upgrades to delete it;
panky
(Benedikt)
February 17, 2017, 11:37am
10
what happens when you click refresh parameters?
a green square shows you that heartbeat is being received; also you can see your navio moving in the hud?
Klejs
(Jacob Juul Klejs Kolding)
February 17, 2017, 12:44pm
11
Everything is online, Heartbeat, GPS, Gyro, etc.
When I click Refresh unde Flight Controller it says: no params to write
When I click Refresh under Download Parameters nothing happens.
/Jacob
Klejs
(Jacob Juul Klejs Kolding)
February 17, 2017, 1:45pm
12
Okay…
I made a fresh image, and using Mission Planner (Windows 10) on my laptop i was able to get the full parameter list and set:
BATT_MONITOR=4
BATT_VOLT_PIN=2
BATT_CURR_PIN=3
Wrote params and restarted ArduPlane.
Now I have correct Voltage in APM Planner (OS X)
(But still no full parameter list in AMP Planner???)
/Jacob
panky
(Benedikt)
February 17, 2017, 1:48pm
13
delete ArduCopter.stg and reboot;
if that doesn’t solve your problem, please:
post a screenshot of APM’s full params list;
post a screenshot of command line starting ArduPlane;
Edit: ignore the above;
make sure you have latest APM planner or reinstall;
Klejs
(Jacob Juul Klejs Kolding)
February 17, 2017, 1:56pm
14
I’m not sure how to purge settings on OS X.
I tried deleting ~/apmplanner2 and reinstall but some settings remain.