Jump to content

Search the Community

Showing results for tags 'totalizer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Official Updates
    • Community News
    • Official Newsletters
  • New User Briefing Room
    • Squadron Recruiting
  • English
    • Digital Combat Simulator
    • Licensed Third Party Projects
    • General Off-Topic Discussion
    • Legacy Versions
  • International support
  • Русский
  • DCS Finland's DCS Finland
  • 3Sqn's 3Sqn
  • 49th Black Diamonds's 49th Black Diamonds
  • -=Пилотажники=-'s -=Пилотажники=-
  • Polacy's Polacy
  • = Flammeus Vulpes = fighting squadron's = Flammeus Vulpes = fighting squadron
  • Banda-DV's Banda-DV
  • Comedy Central's Comedy Central
  • =UVAF='s =UVAF=
  • 100 KIAP's 100 KIAP
  • VVS 504th Red Hammers's VVS 504th Red Hammers
  • COPE THUNDER's COPE THUNDER
  • Lock-On Mod Makers's Lock-On Mod Makers
  • Sweden's Sweden
  • Leftside Limited Tech section's Leftside Limited Tech section
  • Ground Troops Aviation Training Center's Ground Troops Aviation Training Center
  • German DCS Community's German DCS Community
  • Spanish DCS Community's Spanish DCS Community
  • DENMARK's DENMARK
  • °United Fight Spirits° - Germany's °United Fight Spirits° - Germany
  • DCS UK's DCS UK
  • Чат's Чат
  • RedRodgers's RedRodgers
  • Совместные вылеты онлайн's Совместные вылеты онлайн
  • -=Air piretS=-'s -=Air piretS=-
  • Клуб Веселых Пилотов/Smile Pilots Club's Клуб Веселых Пилотов/Smile Pilots Club
  • 161 Squadron's 161 Squadron
  • German DCS Serveradmins's German DCS Serveradmins
  • Escuadrón 701, Colombia's Escuadrón 701, Colombia
  • LowLand Tiger Meet's LowLand Tiger Meet
  • 279KIAP Regiment's 279KIAP Regiment
  • Australian DCS Community's Australian DCS Community
  • Scandinavia's Scandinavia
  • Crazy Canuks's Crazy Canuks
  • VNAO's VNAO
  • SHREK AIR STRIKE Sqn DIE HARD's SHREK AIR STRIKE Sqn DIE HARD
  • DCS NA's DCS NA
  • The Silver Falcons's The Silver Falcons
  • 127Th Sibйrian Tiger's 127Th Sibйrian Tiger
  • 129th A-10 Squad: The Guard Sharks's 129th A-10 Squad: The Guard Sharks
  • Virtual Red Arrows's Virtual Red Arrows
  • Hellenic Pilots's Hellenic Pilots
  • =2IAE='s =2IAE=
  • VETERANS-GAMING's VETERANS-GAMING
  • 16th ACCW Tigers DEN's 16th ACCW Tigers DEN
  • USMC Veterans's USMC Veterans
  • United States Air Force's United States Air Force
  • =BAF='s =BAF=
  • Fighter Combat Simulations's Fighter Combat Simulations
  • =Воздушные Войны= aka =BB='s =Воздушные Войны= aka =BB=
  • CADelta's CADelta
  • DCS: Combined Arms's DCS: Combined Arms
  • VNAO - US NAVY's VNAO - US NAVY
  • Oceanic Wing and Friends's Oceanic Wing and Friends
  • The Virtual Horsemen's The Virtual Horsemen
  • Hellas's Hellas
  • NoPryl Flight Squadron's Topics
  • NoPryl Flight Squadron's NoPryl Warthog Squadron
  • Carrier Air Wing Seventeen — CVW-17 —'s Carrier Air Wing Seventeen — CVW-17 —
  • 蜂鸟特技飞行表演队 HummingBird Aerobatics Team's 蜂鸟特技飞行表演队 HummingBird Aerobatics Team
  • 1st Cav Div (Air Assault)'s 1st Cav Div (Air Assault)
  • CrimsonFlag - 102° GVv's CrimsonFlag - 102° GVv
  • AIEclan's AIEclan
  • Virtual Black Sheep's Virtual Black Sheep
  • 929th's 929th
  • French DCS Community's French DCS Community
  • 373rd Online Tactical Campaigns's 373rd Online Tactical Campaigns
  • Just For Laughs Simulation DCS's Just For Laughs Simulation DCS
  • "Russian Air Force" =RAF='s "Russian Air Force" =RAF=
  • ECV56 Cóndor's ECV56 Cóndor
  • Master Arms's Join Master Arms
  • Master Arms's Master Arms
  • 141 Wolfs's 141 Wolfs
  • 314. ШАП Моздок (Су-25)'s 314. ШАП Моздок (Су-25)
  • Escuadrón 117's Escuadrón 117
  • Austian/Germany Pilots's Austian/Germany Pilots
  • Итория авиации's Итория авиации
  • Clan Vikingos's Clan Vikingos
  • Virtual Royal Danish Airforce's Virtual Royal Danish Airforce
  • United Operations Air Forces's United Operations Air Forces
  • United States Navy's United States Navy
  • SQUADRONE LAMPO TICINO CH's SQUADRONE LAMPO TICINO
  • Europe clan's Europe clan
  • No.66 Squadron's No.66 Squadron
  • De Belgae's De Belgae
  • v47th Fighter Squadron's v47th Fighter Squadron
  • 105 Wirtualny Pułk Śmigłowców Bojowych (105th Virtual Combat Helicopters Regiment).'s 105 Wirtualny Pułk Śmigłowców Bojowych (105th Virtual Combat Helicopters Regiment).
  • 7 Wirtualna Eskadra Działań Specjalnych's 7 Wirtualna Eskadra Działań Specjalnych
  • 223rd CAS "Wolfpack"'s 223rd CAS "Wolfpack"
  • www.TAW.net - DCS Division's www.TAW.net - DCS Division
  • Jagdfliegergeschwader 1 “Fritz Schmenkel” (JG-1)'s Recruitment
  • 64th Aggressor Squadron - Public's Images and Videos
  • =БК= Братские крылья's Связь
  • =БК= Братские крылья's Сервера =BK=
  • =БК= Братские крылья's Вопросы
  • Virtual Carrier Air Wing 99's Topics - Bugs
  • Virtual Carrier Air Wing 99's COOP Flights - Request
  • Virtual Carrier Air Wing 99's Video and Live Feed
  • Virtual Carrier Air Wing 99's Recruitment questions
  • Air Combat Wings's Video
  • Air Combat Wings's Vola con noi !
  • DTA - Comunidad Hispana de DCS's Muro
  • Virtual Skyblazers's Information
  • Virtual Skyblazers's Conversation
  • Sesto Stormo Virtuale's Media Missioni
  • The Flying Kiwis's The Flying Kiwis Zorb ball of death dedicated server
  • The Flying Kiwis's ANZAC Mission
  • LINCI's Discussioni
  • [OFS] Open Flight School's Informationen
  • The Pirates Cove's Mods
  • The Pirates Cove's C-130 MOD
  • VF-211's Contact us
  • RUSSIAN FALCONS's Публичная информация
  • DCS PŇACI's BLA BLA
  • Comunidad Española de DCS - Interescuadrones's Discusiones
  • Sabre Squadron's Campaign & Mission Updates
  • Neko PMC's Topics
  • 74th Flying Tigers's Questions and Answers
  • NE VAF's Announcements
  • Virtual JaBoG32's Topics
  • VIRTUAL 312 SQUADRON's THE VIPER DRIVERS
  • Cerberus Fighter Wing's Screenshot Posting
  • Digital Coalition Air Force's Posts/Forum
  • Beyaz Kartallar (161-Kartal Yarasa Filo)'s Beyaz Kartallar
  • Strike Fighter Squadron's VMFA-35 Skin by Stellou
  • 1st VFW's General Discussion
  • Joint Task Force 191's January 1st, 2024 - New Training Program
  • VFA-41 Black Aces's VFA-41 Black Aces Squadron Info
  • 154th Air Wing's New Server
  • JTF-111's What We Offer
  • JTF-111's Latest News
  • vVMFA-251's VMFA-251 is back and recruiting virtual Marine Hornet pilots!
  • 9th Air Brigade of PLAAF's Anyone want to train together for competitions?
  • 71st_Eagles's Topics
  • 71st_Eagles's Members
  • Task Force Uniform Charlie Sierra's Links
  • =LF= Escuadrón LA FUNDACIÓN's AVISOS Y NOTÍCIAS
  • 1(F) Squadron RAF Air UK's Operations
  • Tact. Air Base 8's Dedicated Public Servers
  • 334th "Eagle" Squadron's Contact Us
  • Nemesis HAW's Topics
  • THE AIR WARFARE GROUP's Topics
  • 枝江虚拟航空队's 涂装展览
  • COMMAND OF THE AIR's ЧАТ
  • 1st Virtual Air Expeditionary Wing's Public Affairs
  • 「301fs」's Enlisting
  • 「301fs」's 301fs Equipment
  • 「301fs」's Squadron Rules
  • Royal Netherlands Air Force virtual's Topics
  • 4YA-Community's Events
  • 4YA-Community's The 4YA Community
  • VMFA-323's Welcome
  • 78th Fighter Squadron's Topics
  • Air Group =Axeman= (=AxA=)'s Связь
  • Air Group =Axeman= (=AxA=)'s Air Group =Axeman= (=AxA=)
  • VFA-103 VIRTUAL JOLLY ROGERS's Discord
  • Ghost Syndicate's Forum
  • [TM] Tigermercs's Club-Forum
  • GAEv Grupo Aeronaval Embarcado Virtual's Discusiones
  • 76th DSOW (Digital Special Operations Wing)'s Open Recruitment
  • 619th Windborne Air Group's Current Events
  • VICOMTE's Recrutement
  • Casual Flyers's Casual Flyers
  • The Jousters's Chat
  • Stalin's Falcons's Создание сервера
  • Stalin's Falcons's Предложения полетов
  • Stalin's Falcons's Связь
  • a's Squadron Media
  • a's Squadron Recruiting Information
  • Taskforce Trident - USAFCENTCOM's Squadron Media
  • 21NSQD | Squadron's Recruitment Status
  • 101st Combat Aviation Brigade's Instructions on How to Join
  • (NAFSAM)'s NAFSAM Discord
  • VMFAT-101 'Sharpshooters''s Topics
  • Wolfa - french squadron's Activité/activity
  • Wolf Pack US's Wolf Pack Videos and Server Info
  • Wolf Pack US's Wolf Pack Warbirds Persistent Sever Tutorial
  • Carrier Air Wing 3 | RU's Discord сервер сообщества
  • Carrier Air Wing 3 | RU's Наша группа в ВК
  • 808th World Squadron's How To Join
  • 虚拟笕桥航空队-JQvFG's 鸽动力水坛(General Topic)
  • 虚拟笕桥航空队-JQvFG's 笕桥陵园(Event Room)
  • 虚拟笕桥航空队-JQvFG's 笕桥航校(JQvAA)
  • 虚拟笕桥航空队-JQvFG's 笕桥影业(JQvFG Film)
  • Australian Virtual Air Wing's Forum
  • Virtual Royal United Kingdom 10th Squadron's LUA Discussions
  • ММВГ "Broiller Squad"'s Форум
  • Task Force Thunderbolt's Topics
  • VIRTUAL INDIAN AIR FORCE's JOIN DISCORD BY THIS LINK
  • 588th Fighter Aviation Regiment's Announcements
  • 588th Fighter Aviation Regiment's Media
  • 588th Fighter Aviation Regiment's Chow Hall
  • Joint Flight Command Oregon's Application & Links
  • Irréductibles's Recherche de pilotes motivés F18 et M2000

Calendars

  • Community Calendar
  • Jagdfliegergeschwader 1 “Fritz Schmenkel” (JG-1)'s Events
  • ASOR 234 squadron's Operations
  • ≡★≡ THE 51st VIRTUAL FIGHTER WING ≡★≡'s Events
  • Lock-On Greece | DCS World Greece™'s Events
  • DCS Español || D3W's Calendario
  • DTA - Comunidad Hispana de DCS's Eventos
  • Carrier Air Wing 66's Events
  • DCS - Allied Forces - Open Missions and Beyond's Events
  • Sesto Stormo Virtuale's Eventi
  • [OCG] Oceanic Combat Group's OCG Events & Training
  • The Flying Kiwis's TFK Flying schedule
  • VF-211's Training nights
  • VF-211's Calendar
  • 421st VIRTUAL FIGHTER SQUADRON's MISSION BOARD
  • DCS PŇACI's LIETANIE
  • Omega Group's Friday Night flights -- 7PM PST
  • Comunidad Española de DCS - Interescuadrones's Eventos
  • Neko PMC's Events
  • VFA-86 Sidewinders's Winder schedule
  • 74th Flying Tigers's Trainings and Missions
  • NE VAF's Events
  • Cerberus Fighter Wing's Events
  • Digital Coalition Air Force's Events
  • uosef's عقابهای ایران
  • v81st Fighter Squadron's Training and Operations
  • Darkwater Aerial Security Ltd. (Task Force "Caucasus Dragons")'s Contracts and Operations
  • Darkwater Aerial Security Ltd. (Task Force "Caucasus Dragons")'s Events
  • JTF-111's Events
  • Pegasus's Events
  • Delta Force Squadron's Events
  • 71st_Eagles's Events
  • Virtual Fighter Group's Schedule
  • Tact. Air Base 8's Events
  • THE AIR WARFARE GROUP's Events
  • 71st Laughing Rooks's 71st Events
  • Virtual Air Festivals's VAF Events
  • Royal Netherlands Air Force virtual's Events
  • Royal Netherlands Air Force virtual's Events
  • vCSG-3's vCSG-3 Events
  • 102nd Albatross's Events
  • VMFA-323's Events
  • 78th Fighter Squadron's Events
  • vNAVY's Events
  • Ghost Syndicate's Events
  • [TM] Tigermercs's Staffeltraining
  • [TM] Tigermercs's Events
  • 76th DSOW (Digital Special Operations Wing)'s Missions
  • RS Red Star's Events
  • a's CVW-2 Calendar
  • Taskforce Trident - USAFCENTCOM's Scheduled Squadron Events
  • 21NSQD | Squadron's Events
  • Combined Joint Task Force's OPERATION - ISLAND HOP
  • Wolf Pack US's Wolf Pack Missions and Events
  • Wolf Pack US's Events
  • Wolf Pack US's JUGHEADS mission night
  • 808th World Squadron's Birth Date 01.24.23
  • 虚拟笕桥航空队-JQvFG's 联机活动日程
  • Australian Virtual Air Wing's Events
  • Virtual Air Force's Mission/Training Night
  • TACG 218's Events
  • ММВГ "Broiller Squad"'s Операции
  • 366th Fighter Wing "Gunfighters"'s Mssion nigths & Operatinos
  • Task Force Thunderbolt's Events
  • Joint Flight Command Oregon's Events
  • Irréductibles's Campagne OGF
  • [JaboG49] Virtuelles Jagdbomber Geschwader 49's Termine
  • Virtual Carrier Air Wing One (vCVW-1)'s Sinai Campaign
  • Task Force Perpetual Motion's Events

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Flight Simulators


Location


Interests


Occupation


Website

Found 1 result

  1. Okay everyone thanks to @Middlefart for his main code, my wife for her expertise, helping me with this code for everyone looking for the F-16 Total Fuel gauge. All you need to do is add your code for your motors for the FWD/AFT pointers and your backlighting for your gauge. Easy and done! Hope this helps everyone!! This does work great on my seeeduino XIAO controller (DEFAULT_SERIAL only). Mega, nano, etc will work with IRQ_SERIAL. /* F-16 Total Fuel Gauge Thanks to: Middlefart (Original code), Fusion and Fusion's Wife (software engineer) Code is for the 128x32 oled i2c display. All you have to do is add your motor pins and guage backlight pins if desired. Hope this helps others! DCS-BIOS has made things far easier for DCS than software made to drive simulator components in FalconBMS. Glad to be apart of the DCS world. Matt "Fusion" G. */ //#define DCSBIOS_DEFAULT_SERIAL #define DCSBIOS_DEFAULT_SERIAL #include "DcsBios.h" #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "characters.h" #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 32 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) #define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); int AB; float Value1; float Value2; float Value3; float Total; unsigned long time = 0; unsigned int i = 0; //Comment for barometric pressure #define ALTIMETER int updateInterval = 100; //the number of milliseconds between updates struct scrollDigit { int digit; //The digit that is displayed int y; // The vertical position of the digit }; struct disp { Adafruit_SSD1306 display; int width; int numberOfDigits; scrollDigit digits[5]; }; //disp oled = {Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET), 24, 5, {{0,0},{0,0},{0,0},{0,0},{0,0}}}; disp oled = {Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET), 16, 5, {{0,0},{0,0},{0,0},{0,0},{0,0}}}; void setup() { if(!oled.display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3C for 128x32 for(;;); // Don't proceed, loop forever } DcsBios::setup(); } void UpdateDisplay() { oled.display.clearDisplay(); for (int i = 0; i < oled.numberOfDigits; i++) { printScrollingDigit(oled.digits[i].digit, oled.width, oled.digits[i].y, i + 1, &oled); } //Clear the area below the the numbers if we are using the small font if (oled.width == 16) { oled.display.fillRect(0, 30, 127, 7, BLACK); } oled.display.display(); } int YPos() { return ((oled.width + 9) * -1); } void printScrollingDigit(int digit, int width, int y, int pos, disp *oled) { int x = (width * pos) - width + pos + 30; y +=5; switch (digit) { case -1: oled->display.drawBitmap(x, y, c16_0, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_1, 16, 24, 1); break; case 1: oled->display.drawBitmap(x, y, c16_1, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_2, 16, 24, 1); break; case 2: oled->display.drawBitmap(x, y, c16_2, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_3, 16, 24, 1); break; case 3: oled->display.drawBitmap(x, y, c16_3, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_4, 16, 24, 1); break; case 4: oled->display.drawBitmap(x, y, c16_4, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_5, 16, 24, 1); break; case 5: oled->display.drawBitmap(x, y, c16_5, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_6, 16, 24, 1); break; case 6: oled->display.drawBitmap(x, y, c16_6, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_7, 16, 24, 1); break; case 7: oled->display.drawBitmap(x, y, c16_7, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_8, 16, 24, 1); break; case 8: oled->display.drawBitmap(x, y, c16_8, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_9, 16, 24, 1); break; case 9: oled->display.drawBitmap(x, y, c16_9, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_0, 16, 24, 1); break; default: if (pos < 3) { oled->display.drawBitmap(x, y, c16_0, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_1, 16, 24, 1); } else { oled->display.drawBitmap(x, y, c16_0, 16, 24, 1); oled->display.drawBitmap(x, y+25, c16_0, 16, 24, 1); } break; } } void onFueltotalizer10kChange(unsigned int newValue) { unsigned int mappedValue = newValue / 6553; unsigned int y = map(newValue, mappedValue * 6553, mappedValue * 6553 + 6553, 0, YPos()); if (mappedValue == 0) { mappedValue = -1; } #ifdef TEST Serial.println(mappedValue); #endif oled.digits[0].digit = mappedValue; oled.digits[0].y = y; } void onFueltotalizer1kChange(unsigned int newValue) { unsigned int mappedValue = newValue / 6553; unsigned int y = map(newValue, mappedValue * 6553, mappedValue * 6553 + 6553, 0, YPos()); oled.digits[1].digit = mappedValue; oled.digits[1].y = y; } void onFueltotalizer100Change(unsigned int newValue) { unsigned int mappedValue = newValue / 6553; unsigned int y = map(newValue, mappedValue * 6553, mappedValue * 6553 + 6553, 0, YPos()); oled.digits[2].digit = mappedValue; oled.digits[2].y = y; oled.digits[3].digit = 0; oled.digits[3].y = y; oled.digits[4].digit = 0; oled.digits[4].y = y; } DcsBios::IntegerBuffer fueltotalizer10kBuffer(0x44e4, 0xffff, 0, onFueltotalizer10kChange); DcsBios::IntegerBuffer fueltotalizer1kBuffer(0x44e6, 0xffff, 0, onFueltotalizer1kChange); DcsBios::IntegerBuffer fueltotalizer100Buffer(0x44e8, 0xffff, 0, onFueltotalizer100Change); void loop() { DcsBios::loop(); time = millis(); if (time % updateInterval == 0) { UpdateDisplay(); } }
×
×
  • Create New...