Please select Into the mobile phone version | Continue to access the computer ver.
Run a simulated mission and retrieve "simulated" battery values
63 0 5-26 06:43
Uploading and Loding Picture ...(0/1)


Dear all,
I'm new here. I have a DJI Matrice 300 and I'm trying to develop an application for my research.
Basically, I would like to retrieve data concerning the battery and do some analsys on them.
I checked that I have to invoke the following code (that's a part only):

DJISDKManager.getInstance().getProduct().getBattery().setStateCallback(new BatteryState.Callback() {
                public void onUpdate(BatteryState batteryState) {
                    int chargeRemaining = batteryState.getChargeRemaining();
                    Log.e(TAG, "chargeRemaining: " + chargeRemaining);

                    int fullChargeCapacity = batteryState.getFullChargeCapacity();
                    Log.e(TAG, "fullChargeCapacity: " + fullChargeCapacity);

                    int chargeRemainingInPercent = batteryState.getChargeRemainingInPercent();
                    Log.e(TAG, "chargeRemainingInPercent: " + chargeRemainingInPercent);

                    int voltage = batteryState.getVoltage();
                    Log.e(TAG, "voltage: " + voltage);

                    // Returns the real time current draw of the battery (mA).
                    // A negative value means the battery is being discharged, and a positive value means it is being charged.
                     int current = batteryState.getCurrent();
                    Log.e(TAG, "current: " + current);
When I run a simulation, I get on my log the following (that's an example).

chargeRemaining: 3311
fullChargeCapacity: 5710
chargeRemainingInPercent: 58
voltage: 47004
current: -682

So, I immediately realized that this energy drainage is actually the real one, not the simulated one. In fact, I can simulate a really long mission since the drone's energy consumption is extremely low, since the drone is on my table :-D

At this point I was wondering if it is possible to simulate the energy drainage on a simulation. In other words, I would like to simulate a 'real' drone's mission.
Thanks in advance.


5-26 06:43
Use props
You need to log in before you can reply Login | Register now

Credit Rules