5 To prevent explosive growth of different target and feature count and ensure reasonable quality and usability of the firmware the following policy is mandatory for all new hardware additions (including variants of the same target).
9 "Target" - part of the source code responsible for providing a new build artifact (hex-file).
11 "Hardware" - physical hardware requiring support from firmware side.
13 "Requester" - manufacturer or community member seeking addition of new hardware or target
15 ## New target additions
17 New targets are accepted into INAV code if any of the following conditions is satisfied:
19 1. Requester is a manufacturer of the hardware or an affiliated community member. Requester provides specs, schematics and production samples are provided to at least two core developers. In this case the new target becomes part of official INAV release.
21 2. Requester is a community member not affiliated with a manufacturer of the hardware. Requester provides board samples to at least one core developer and the target is already supported in official Cleanflight or Betaflight firmware. In this case the new target may or may not become part of official release based on the decision made by core developers.
23 3. The new target must meet the following minimal requirements:
25 * On-board sensors include at least the IMU (gyroscope + accelerometer)
26 * At least 2 hardware serial ports are available with both TX and RX pins
27 * At least 512K of firmware flash memory and at least of 64K of RAM available
28 * At least one I2C bus broken out (SCL and SDA pins) and not shared with other functions
30 ## New hardware support
32 For the hardware which does not require a new target, but still require support from the firmware side the following rules apply:
34 1. Requester is a manufacturer of the hardware or an affiliated community member. Requester provides specs and production samples for the unsupported hardware to at least two core developers.
36 2. Requester is a community member not affiliated with a manufacturer of the hardware. Requester provides hardware samples to at least one core developer and the firmware support already exists in official Cleanflight or Betaflight firmware.
38 ## Using own hardware exception
40 If one of the core developers has the hardware in possession they may opt in and submit support for it anyway. In this case the support is not official and may not be included in official releases.
42 ## Providing samples to developers
44 1. Hardware provided to the developers would be considered a donation to the INAV project. Under no circumstances developer will be obliged to return the hardware or pay for it.
46 2. Requester bears all the costs of the hardware, delivery and VAT/customs duties. Hardware manufacturer also assumes the responsibility to provide up to date specs, documentation and firmware (if applicable).
48 3. Before sending samples the Requester should reach out to developers and agree on specific terms of implementing support for the unsupported hardware. Developers may place additional requirements on a case by case basis and at their sole discretion.
50 4. The new target and new hardware policies do not apply in the following cases. Developers may still chose to apply the "own hardware exception" at their own discretion.
52 * if the receiving developer has to bear part of the costs (and is not reimbursed by the sender)
53 * if the hardware provided does not behave according to specs (different communication protocol, undocumented or incorrect CPU pin mappings, damaged or dead on arrival) and the sender doesn't provide a way to resolve the problem (up to date docs, new firmware etc).
54 * if the hardware was sent without reaching out to developers and agreeing on the terms first.
56 5. It's advised to provide more than one sample to avoid issues with damaged or dead on arrival hardware.
58 ## Implementing support for the new target or hardware
60 1. Pull request to add the new target or hardware may be authored by a contributor outside INAV team or by one of the core developers.
62 2. There is no obligation to accept a pull request made by an outside contributor. INAV team reserves the right to reject that pull request and re-implement the support or take that pull request as a baseline and amend it.
64 3. INAV team reserves the right to reject the new target or hardware or remove the support for an unforeseen reason including, but not limited to violation of [INAV Code of Conduct](CODE_OF_CONDUCT.md) by the manufacturer or an affiliated outside contributor.
66 ## Guidelines on contacting the team
68 1. Requester is advised to open a feature request to add support for certain hardware to INAV by following [this link](https://github.com/iNavFlight/inav/issues/new/choose)
70 2. After opening a feature request, Requester is advised to contact the core development team by [email](mailto:coredev@inavflight.com) mentioning the open feature request and communicate with developer team via email to arrange hardware and specifications delivery.