Skip to content

AI generated issue ticket: mixer.c - Standardize float literals to use 'f' suffix #1102

@nerdCopter

Description

@nerdCopter

AI Generated issue ticket


Issue

Float literal consistency in mixer.c motor mix calculation.

Recent changes correctly added 'f' suffix to motorCorrection and related float literals (1.0f, 0.0f) in the motor mix calculation block. However, there are remaining double literals without the 'f' suffix in the same function scope that should be made consistent.

Current State

Some float initializations use:

  • (should be 0.0f)
  • Other double literals in maxMotor/minMotor related calculations

Should be consistently using:

  • , (float literals with 'f' suffix)

Location

src/main/flight/mixer.c around lines 1055-1070 and related scope

Impact

Code consistency, potential micro-optimization from explicit float type, and clarity of intent.


This is an AI-generated issue for code review recommendations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions