Remove irrelevant/old comments.

pull/264/head
Christopher Young 2016-02-18 00:34:21 -05:00
rodzic 44d4c826c2
commit 65559a38fd
4 zmienionych plików z 5 dodań i 15 usunięć

Wyświetl plik

@ -241,7 +241,6 @@ func makeLatLng(v float32) []byte {
return ret
}
//TODO
func makeOwnshipReport() bool {
if !isGPSValid() {
return false
@ -337,7 +336,6 @@ func makeOwnshipReport() bool {
return true
}
//TODO
func makeOwnshipGeometricAltitudeReport() bool {
if !isGPSValid() {
return false
@ -374,7 +372,6 @@ func makeStratuxStatus() []byte {
msg[3] = 1 // "message version".
// Version code. Messy parsing to fit into four bytes.
//FIXME: This is why we can't have nice things.
thisVers := stratuxVersion[1:] // Skip first character, should be 'v'.
m_str := thisVers[0:strings.Index(thisVers, ".")] // Major version.
mib_str := thisVers[strings.Index(thisVers, ".")+1:] // Minor and build version.
@ -767,7 +764,6 @@ type ReplayWriter struct {
}
func (r ReplayWriter) Write(p []byte) (n int, err error) {
//TODO.
return r.fp.Write(p)
}

Wyświetl plik

@ -316,7 +316,6 @@ func sendGDL90(msg []byte, queueable bool) {
}
func monitorDHCPLeases() {
//TODO: inotify or dhcp event hook.
timer := time.NewTicker(30 * time.Second)
for {
select {

Wyświetl plik

@ -1069,10 +1069,10 @@ func makeAHRSGDL90Report() {
pitch := int16(float64(mySituation.Pitch) * float64(10.0))
roll := int16(float64(mySituation.Roll) * float64(10.0))
hdg := uint16(float64(mySituation.Gyro_heading) * float64(10.0)) //TODO.
slip_skid := int16(float64(0) * float64(10.0)) //TODO.
yaw_rate := int16(float64(0) * float64(10.0)) //TODO.
g := int16(float64(1.0) * float64(10.0)) //TODO.
hdg := uint16(float64(mySituation.Gyro_heading) * float64(10.0))
slip_skid := int16(float64(0) * float64(10.0))
yaw_rate := int16(float64(0) * float64(10.0))
g := int16(float64(1.0) * float64(10.0))
// Roll.
msg[4] = byte((roll >> 8) & 0xFF)

Wyświetl plik

@ -7,7 +7,6 @@ import (
"github.com/kidoman/embd/sensor/bmp180"
)
var i2cbus embd.I2CBus
var myBMP180 *bmp180.BMP180
@ -24,7 +23,6 @@ func readBMP180() (float64, float64, error) { // ºCelsius, Meters
return temp, altitude, nil
}
func initBMP180() error {
myBMP180 = bmp180.New(i2cbus) //TODO: error checking.
return nil
@ -43,12 +41,10 @@ func tempAndPressureReader() {
if err_bmp180 != nil {
fmt.Printf("readBMP180(): %s\n", err_bmp180.Error())
} else {
fmt.Printf("Temp %f Alt %f\n",temp,alt)
fmt.Printf("Temp %f Alt %f\n", temp, alt)
}
}
func initAHRS() error {
if err := initI2C(); err != nil { // I2C bus.
return err
@ -62,7 +58,6 @@ func initAHRS() error {
return nil
}
func main() {
fmt.Printf("Hello world!\n")
initAHRS()