December 13, 20214 yr 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
December 15, 20214 yr 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>
December 15, 20214 yr Author 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
December 16, 20214 yr 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)
December 16, 20214 yr Author Great, thanks a lot for your help ! 🙂 best regards ggerolamo kind regards, ggerolamo
Archived
This topic is now archived and is closed to further replies.