Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reading Weather via FSUIPC

Featured Replies

I'm trying to add a working weather radar to my Boeing 707 panel (featured at the Historic Jetliners Group), but I can't seem to read the weather information. I can read OK at the aircraft's position (0xC000 offset), but not elsewhere. My current section of code for reading weather is: FSUIPC_Read( 0xCC00, 1024, &Weather[radarcellcounter], &upcerror); FSUIPC_Process(&upcerror); for (i = 0; i < 71; i++) oktas[radarcellnumbers] = oktascheck( Weather, 10.0 ); radarcellcounter++; if (radarcellcounter >= 71) { radarcellcounter -= 71; } findcellcoordinates(radarcellnumbers[radarcellcounter], &weatherradarlatitude, &weatherradarlongitude, &weatherradaraltitude); tempcellnumber = radarcellnumbers[radarcellcounter]; // writing co-ordinates for next read FSUIPC_Write( 0xCC10, 8, &weatherradarlatitude, &upcerror); FSUIPC_Write( 0xCC18, 8, &weatherradarlongitude, &upcerror); FSUIPC_Write( 0xCC08, 4, &blankICAO, &upcerror); FSUIPC_Write( 0xCC04, 4, &tempcellnumber, &upcerror); FSUIPC_Process(&upcerror);(Note this code is inside a SetTimer call, run 18 times per second)As the code stands it reads in the weather at the first interrogated latitude and longitude, but not other lat/long combinations. If I try setting 0xCC04 to the same number for each read (either zero, or a nonzero constant), loading the panel causes an instant CTD.What am I doing wrong?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.