Pārlūkot izejas kodu

Added frame geometry data

main
Marcus Grieger pirms 1 gada
vecāks
revīzija
52cedeecb4
3 mainītis faili ar 37 papildinājumiem un 0 dzēšanām
  1. +34
    -0
      configuration/geometry.json
  2. +0
    -0
      python/hexapod/servo_mapping.py
  3. +3
    -0
      python/test_hal.py

+ 34
- 0
configuration/geometry.json Parādīt failu

@@ -0,0 +1,34 @@
{
"leg_geometry": {
"c": 20,
"f": 80,
"t": 130
},

"leg_offsets": {
"1": {
"offset": [-40, 80, 0],
"side": "l"
},
"2": {
"offset": [-60, 0, 0],
"side": "l"
},
"3": {
"offset": [-40, -80, 0],
"side": "l"
},
"4": {
"offset": [ 40, -80, 0],
"side": "r"
},
"5": {
"offset": [ 60, 0, 0],
"side": "r"
},
"6": {
"offset": [ 40, 80, 0],
"side": "r"
}
}
}

python/servo_mapping.py → python/hexapod/servo_mapping.py Parādīt failu


+ 3
- 0
python/test_hal.py Parādīt failu

@@ -0,0 +1,3 @@
import hal

hal.pwm['t1'].duty_cycle=1000/20000

Notiek ielāde…
Atcelt
Saglabāt