Conversation
Implement ACRE2 PTT tracking alongside existing TFAR support. Captures radio name, channel, frequency, and SR/LR classification using ACRE2 API functions and sends events through the same :RADIO: extension command format.
Summary of ChangesHello @fank, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances radio event tracking capabilities by integrating full support for ACRE2. It allows for the detailed capture of radio transmissions, including specific radio models, channels, and frequencies, and ensures that both start and stop speaking events are reliably recorded. This integration provides a more complete and accurate picture of in-game radio communications for analysis and logging. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request successfully adds event tracking for ACRE2 radios, which is a great feature enhancement. The implementation correctly uses ACRE2 API functions and event handlers. My review focuses on improving maintainability by reducing code duplication between the acre_startedSpeaking and acre_stoppedSpeaking event handlers. I've provided specific suggestions to refactor this, which will also result in a minor performance improvement by avoiding redundant API calls.
Store computed radio name, type, channel, and frequency on the unit during acre_startedSpeaking instead of re-querying ACRE2 API in the stop handler. Radio settings can't change mid-transmission.
Summary
fnc_addEventIntegrations.sqfwith workingacre_startedSpeaking/acre_stoppedSpeakingevent handlers"ACRE"processing branch infnc_radioEvent.sqfthat sends:RADIO:events in the same format as TFAR_radioIdon the unit during start event sinceacre_stoppedSpeakingdoesn't provide itTest plan
:RADIO:events appear in extension log with correct field dataSR) and PRC-152/PRC-117F (should showLR)Stopevent fires with correct radio info