Compare commits

...

2 Commits

Author SHA1 Message Date
f522a4d92a package annotations 2026-04-04 17:20:46 +01:00
7d10206ed2 Added modules to implement 2026-04-04 17:15:43 +01:00
11 changed files with 61 additions and 1 deletions

13
src/battery/battery.go Normal file
View File

@@ -0,0 +1,13 @@
package battery
/*
define battery types
each battery needs
number of cells
nominal cell voltage
max cell voltage
min cell voltage
series internal resistance
*/

3
src/battery/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module battery
go 1.26.1

14
src/data/data.go Normal file
View File

@@ -0,0 +1,14 @@
package data
/*
this package should deal with packaging data to and from the device, loading csv
pack to device
unpack from device
load and save csv profiles
nice to have, average selected profiles
*/

3
src/data/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module data
go 1.26.1

15
src/device/device.go Normal file
View File

@@ -0,0 +1,15 @@
package device
/*
need a struct for device status
battery simulationn
v_on - voltage output flag
v_target - voltage target
v_actual - voltage at output
battery profiling
i_target - discharge
i_actual - current output
*/

3
src/device/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module device
go 1.26.1

View File

@@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"main/serial" "main/serial"
"main/ui"
"fyne.io/fyne/v2/app" "fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container" "fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget" "fyne.io/fyne/v2/widget"

3
src/serial/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module serial
go 1.26.1

View File

@@ -7,3 +7,4 @@ func GetPorts() []string {
return ports return ports
} }

3
src/ui/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module ui
go 1.26.1

2
src/ui/ui.go Normal file
View File

@@ -0,0 +1,2 @@
package ui