Skip to content

abs is deprecated for floats, use fabs instead #1

Description

@DarkMatterMatt

In line 496, return( abs( sMotors[ index ].current) ); it gives the warning *Warning*:Symbol 'abs' is 'deprecated' definition. There may be alternate symbol with equivalent functionality.

Quoting yourself,

we deprecated 'abs' for use with floating point numbers, the preferred replacement is 'fabs'

sMotors[ index ].current is a float, if I change abs to fabs the warning goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions