Compare commits
2 Commits
7b989fb2b2
...
f522a4d92a
| Author | SHA1 | Date | |
|---|---|---|---|
| f522a4d92a | |||
| 7d10206ed2 |
13
src/battery/battery.go
Normal file
13
src/battery/battery.go
Normal 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
3
src/battery/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module battery
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
14
src/data/data.go
Normal file
14
src/data/data.go
Normal 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
3
src/data/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module data
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
15
src/device/device.go
Normal file
15
src/device/device.go
Normal 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
3
src/device/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module device
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
@@ -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
3
src/serial/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module serial
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
@@ -7,3 +7,4 @@ func GetPorts() []string {
|
|||||||
|
|
||||||
return ports
|
return ports
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
src/ui/go.mod
Normal file
3
src/ui/go.mod
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module ui
|
||||||
|
|
||||||
|
go 1.26.1
|
||||||
2
src/ui/ui.go
Normal file
2
src/ui/ui.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
package ui
|
||||||
|
|
||||||
Reference in New Issue
Block a user