Jump to content
Sign in to follow this  
ggerolamo

dsd_p3d_battery_charger_x64.dll

Recommended Posts

 

Hello all,

I have a question regarding the gauge from Doug Dawson:
dsd_p3d_battery_charger_x64.dll

I would like to create a 2D popup window to recharge my batteries on mouse-click !

The description says the following:
---
Panel.cfg syntax:
gauge41=dsd_p3d_battery_charger_x64!charger,  552,559,50,24

The gauge can also be controlled by means of the L:Variable
(L:BatteryCharger, bool)
You will still need to install the 'charger' gauge element, but if you are using your own XML front end, you will be able to get away with something like:
gauge41=dsd_battery_charger!charger,  0,0,1,1

There are also a couple of battery voltage display elements:
gauge42=dsd_p3d_battery_charger_x64!meter,  562,756,80,80 ; an analogue meter
gauge52=dsd_p3d_battery_charger_x64!digital meter,  1063,531,50 ; a digital meter
Neither of these is necessary for operation.

---

How can I display this 'element' in a window to recharge my batteries with a mouse-click ?!
Maybe someone has already done this, or is there another solution to recharge depleted batteries quickly (without airplane reboot) ?


very grateful for any idea 😉
regards
ggerolamo


kind regards, ggerolamo

spacer.png                       spacer.png

 

 

Share this post


Link to post

I have made a switch gauge that is on my overhead panel for what I call a "solar charger". It emulates a solar panel being on the roof and charging the batteries as Doug's system does. It uses Doug/s L:Var (L:BatteryCharger) to activate the function.I have also made an indicator light (using the same L:Var) and am using my own voltage gauge for display.

You still need the charging gauge from Doug, but the display gauges are not necessary for the charger to work.

<Gauge Name="Solar Battery Charger" Version="1.0">
   <Element>
      <Select>
           <Value>(L:BatteryCharger, enum)</Value>
         <Case Value="0">
            <Image Name="Switch 1 RH Down.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="Switch 1 RH Up.bmp"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Tooltip>%Solar battery charger (maintains minimum voltage 24 volts)% %((L:BatteryCharger,bool) 0 >)%{if}(on)%{else}(off)%{end}</Tooltip>
      <Help ID=""/>
  <Cursor Type="Hand" />
  <Click>(L:BatteryCharger, enum) ! (>L:BatteryCharger, enum)</Click>

   </Mouse>
</Gauge>

  • Like 1

Share this post


Link to post

Wow, thank you so much for your feedback 🙂 .

Still have a few questions about this though

Have now created a file "Solar Battery Charger.xml" in the "Panel" directory....

How exactly do I integrate your panel into one of my cockpits now ?

What about the Switch 1 RH Down.bmp Switch, 1 RH Down.bmp ?

 Can you please explain this to me in more detail ...I am unfortunately not such a pro at the xml-gauges 😉

 

best regards

ggerolamo


kind regards, ggerolamo

spacer.png                       spacer.png

 

 

Share this post


Link to post

The two switch bitmaps just happened to be what I used. You could find any two switches (such as you might find in any default switches). change the names as appropriate. You should put the XML file (as above) and the two switch BMP files, into a folder (for example BATTERY CHARGER) in your GAUGES directory. Then it is just a matter of adding a line in the appropriate WINDOW in the panel.cfg file (as below). NOTE that you still need Doug Dawson's display gauges or another showing battery voltage if you need that feature. The battery charger will still work without them.

gauge41=dsd_battery_charger!charger,  0,0,1,1

gauge42=BATTERY CHARGER!Solar Battery Charger, 100,100,20, 40 (example horizontal and vertical coordinates and sizes)

  • Like 1

Share this post


Link to post

Great, thanks a lot for your help ! 🙂

best regards

ggerolamo

 


kind regards, ggerolamo

spacer.png                       spacer.png

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...