Inconsistencies in Coherent.js documentation

Version: 1.6.13.0

Frequency: Consistently

Severity: Blocker

Bug description:

The call name with which a JS instrument is supposed to respond to the EFB asking for a flightplan via the AvionicsRouteRequested event is inconsistent between the different pages of documentation.

In the event page it says it’s “RESPOND_TO_AVIONICS_ROUTE_REQUEST”

listener.on(‘AvionicsRouteRequested’, async (requestId: number) => { //Do work here as required to put together the route to respond with //This is just an example, this buildRoute function is not part of the API const route = await this.buildRoute(); await Coherent.call(‘RESPOND_TO_AVIONICS_ROUTE_REQUEST’, route, requestId); });

but then on the other page it says to use “REPLY_TO_AVIONICS_ROUTE_REQUEST”

await Coherent.call(‘REPLY_TO_AVIONICS_ROUTE_REQUEST’, route, 7);

so REPLY vs. RESPOND

Hello @RJiiFIN

The code snippet in the event page is incorrect, there is no such “respond” call.
The correct call is REPLY_TO_AVIONICS_ROUTE_REQUEST.

We will have the documentation fixed.

Regards,
Sylvain

1 Like

Documentation was updated in SU5 Beta SDK 1.6.4

Regards,
Sylvain

1 Like