UltraZohm

Repository

  • ultrazohm_sw

Getting-Started

  • Onboarding
  • Toolchain installation
  • UltraZohm Setup
  • Tutorials

General

  • System Overview
  • Project structure
  • Infrastructure
  • How to guides
  • Use-cases

MPSoC Platform

  • Platform Architecture
  • RPU Software
  • APU Software
  • Software Framework
    • Software Development Guidelines
    • Hardware Abstraction Layer
    • Array
    • Complex math library
    • Coordinate Transformation
    • CurrentControl
    • ParameterID
    • Newton-Raphson root approximation
    • Moving average
    • Linear decoupling
    • PI-Controller
    • Resonant controller
    • PMSM config
    • Signals
    • Exponential smoothing filter
    • Space vector limitation
    • Speed Control
    • Set Point
      • Setup
      • Functions
        • Sample function
        • Set motor related parameters of PMSM struct
        • Set field weakening
        • Set \(i_d\) reference current
    • Space vector Modulation
    • Waveform Generator
    • Global configuration
    • Unit tests (Ceedling)
    • Assertions
    • System Time R5
    • Matrix math
    • Neural network
    • Fixed-point library
    • Discrete integrator
    • PS System Monitor
    • 6 phase VSD open-phase-fault (OPF) detection and control
    • Sinusoidal PWM Modulation
    • Encoder Offset Estimation
    • Controller SetPoint Filter
    • Resonant Control for Subspace
    • External Stop
  • Vivado Framework
  • IP Cores
  • CPLD

User Software

  • GUI

Codegeneration

  • HDL-Coder (HDL)
  • Vivado HLS (HDL)
  • Embedded-Coder (C-Code)

Hardware

  • Carrier Board
  • Adapter Cards
  • Interface to power electronics
  • Altium
UltraZohm
  • Software Framework
  • Set Point
  • Set motor related parameters of PMSM struct
  • Edit on Bitbucket
Previous Next

Set motor related parameters of PMSM struct

void uz_SetPoint_set_PMSM_config(uz_SetPoint_t *self, uz_PMSM_t input)

Updates the motor related parameters in the uz_PMSM_t struct.

Parameters
  • self – pointer to uz_SetPoint_t object

  • input – uz_PMSM_t struct with new values

Example

Listing 115 Example function call. Init of instance via init-function.
 1int main(void) {
 2  uz_PMSM_t input = {
 3    .R_ph_Ohm = 0.08f,
 4    .Ld_Henry = 0.00027f,
 5    .Lq_Henry = 0.00027f,
 6    .Psi_PM_Vs = 0.0082f,
 7    .polePairs = 4.0f,
 8    .J_kg_m_squared = 0.00001773f,
 9    .I_max_Ampere = 10.0f
10  };
11  uz_SetPoint_set_PMSM_config(SP_instance, input);
12}

Description

Updates the PMSM-parameters in the SpeedControl object to the new input values. Every value of the struct will be asserted again.

Previous Next

© Copyright UltraZohm community.

Built with Sphinx using a theme provided by Read the Docs.