Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O OPALIB PID Voltage mode
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OwnTech
  • Power API
  • OPALIB PID Voltage mode
  • Issues
  • #5

Closed
Open
Created Oct 27, 2021 by Luiz Fernando Lavado Villa@lflavado💬Owner

Data acquisition is managed by PID

Context While preparing for the Hackathon, we've realized that the data acquisition module is called by the PID function and thus cannot be called by other functions. This is an issue since the data will be inevitably needed elsewhere to implement higher level funcitons.

Description

The function opalib_pid_voltage_calculation_and_pwm_update starts as:

void opalib_pid_voltage_calculation_and_pwm_update()
{
	// Acquire and convert data
	uint32_t v1_low_count;
	uint32_t v_high_count;

	uint16_t* v1_low_buffer = data_acquisition_get_v1_low_values(&v1_low_count);
	uint16_t* v_high_buffer = data_acquisition_get_v_high_values(&v_high_count);
...
}

These calls above empty the buffer and mean that the data cannot be used elsewhere.

Solution

It is necessary to change this logic and create a function that manages the data elsewhere. Potentially a function that itself calls opalib_pid_voltage_calculation_and_pwm_update but handles it the data it needs to do its pid.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking